Giter VIP home page Giter VIP logo

Comments (6)

Dustinhoefer avatar Dustinhoefer commented on August 16, 2024 2

Thank you so much, this works with my setup like a charm!

While I have you here, what exactly is "generateStream" used for?
Would I get faster generations there?

from elevenlabs-api.

Dustinhoefer avatar Dustinhoefer commented on August 16, 2024 1

Thank you! Option two sounds like the one most usable for me and the program :)

Looking forward to version 2.7.7

from elevenlabs-api.

Andrewcpu avatar Andrewcpu commented on August 16, 2024

Hi Dustin,

Thank you for your usage and question! You make a good point, I can add that functionality later today or tomorrow.. I'll update this issue when it's done.

from elevenlabs-api.

Andrewcpu avatar Andrewcpu commented on August 16, 2024

@Dustinhoefer Ok, I understand why I didn't include it to start.

The API response does not provide us with the link in response to the API call unfortunately. It provides the actual file as if it were a download.

You'll most likely have to download the files and serve them from your own server. (Assuming they're not using their own API keys, they can't download audio generated from your API account without your API key which is a bad idea).

2 options:

  1. Download the file on a server, and serve the audio files from your server.
  2. Give users your API key, find a way to get the history item for that generation, and use HistoryItem#getDownloadUrl() (I'm adding in 2.7.7)

from elevenlabs-api.

Andrewcpu avatar Andrewcpu commented on August 16, 2024

Refresh your maven caches and check for 2.7.7.. I'll update the readme and will have to do another update shortly to fix speech-to-speech when they re-release it.

from elevenlabs-api.

Andrewcpu avatar Andrewcpu commented on August 16, 2024

generateStream would only be helpful if you can redirect the InputStream to your user and play the inputstream on your users device out of a speaker (In your setup). But having them download a file works too.

For example, for with generateStream it returns an InputStream which means you can route the playback audio directly to your speakers without needing to save and read the file.

from elevenlabs-api.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.