We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello! Can I use SwiftAudioPlayer with ElevenLabs Text to Speech Stream API request?
I understand how to stream audio with GET request acc. to docs:
let url = URL(string: "https://randomwebsite.com/audio.mp3")! SAPlayer.shared.startRemoteAudio(withRemoteUrl: url) SAPlayer.shared.play()
But what if I need also to attach payload to POST request like
var request = URLRequest(url: url) request.httpMethod = "POST" let payload: [String: Any] = [ "text": "Hello", "model_id": "eleven_multilingual_v2", "voice_settings": [ "stability": 0.5, "similarity_boost": 0.75, ] ] let jsonData = try? JSONSerialization.data(withJSONObject: payload, options: .fragmentsAllowed) request.httpBody = jsonData
Response returns audio as an audio stream. Is it possible somehow?
The text was updated successfully, but these errors were encountered:
@iamklim did you find a way to get streaming audio from elevenlabs to work in Swift? I'm trying to do the seame thing.
Sorry, something went wrong.
@iamklim @mgerstenblatt I am trying to figure out the same thing! Any tips?
me too
i ended up using https://github.com/mihai8804858/swift-chunked-audio-player
No branches or pull requests
Hello! Can I use SwiftAudioPlayer with ElevenLabs Text to Speech Stream API request?
I understand how to stream audio with GET request acc. to docs:
But what if I need also to attach payload to POST request like
Response returns audio as an audio stream.
Is it possible somehow?
The text was updated successfully, but these errors were encountered: