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
I'm trying to use the code inside text_to_speech_stream.ts to get audio stream and upload it on aws s3 but it gives me below error.
text_to_speech_stream.ts
/** * Uses the ElevenLabs API to convert text to audio * @param text The text to convert to audio * @returns The URL of the audio file */ export const textToSpeech: (text: string) => Promise<Buffer> = async ( text: string ) => { return new Promise(async (resolve, reject) => { try { const audioStream = await elabs.generate({ voice: "Rachel", model_id: "eleven_turbo_v2", text, }); console.log("audioStream", audioStream); console.log(typeof audioStream); const chunks: Buffer[] = []; for await (const chunk of audioStream) { chunks.push(chunk); } const audio = Buffer.concat(chunks); resolve(audio); } catch (error) { console.log("error", error); reject(error); } }); };
The text was updated successfully, but these errors were encountered:
Hi there, I want to ask that whether your app is capturing users voice from twilio and converting it to text or not?
Sorry, something went wrong.
see #57 could be related
No branches or pull requests
I'm trying to use the code inside
text_to_speech_stream.ts
to get audio stream and upload it on aws s3 but it gives me below error.The text was updated successfully, but these errors were encountered: