Comments (6)
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.
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.
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.
@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:
- Download the file on a server, and serve the audio files from your server.
- 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.
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.
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)
- Unsupported payload value type for speech to speech endpoints
- History.getLastHistoryItemId does not return latest history item id HOT 7
- Getting error code 400 in /v1/speech-to-speech API from android for new added voice HOT 1
- Multiple API Keys HOT 4
- Websocket API
- You should use Java8 because it is more widely used HOT 2
- IntelliJ CANNOT FIND Dependency HOT 3
- Server returned HTTP response code: 401 for URL HOT 1
- Resources for elevenlabs-api are not found in the maven repository HOT 3
- Voice ID not found (Elevenlabs API) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elevenlabs-api.