#nalingupta id 8459 just get the audio

1 messages · Page 1 of 1 (latest)

hearty sun
#

Hi @timid wave thanks for helping. Does it mean I have to save the audio output returned by eleven api into a mp3 file first? I am wondering if there is a way to directly send the audio generate object (in the screenshot below) to telegram bot so that we can avoid file write operation.

timid wave
#

I think you can use a bytesIO object instead to keep it in memory

#

as in, instead of passing an open("file.mp3","rb") you pass io.BytesIO(audio)

#

but І'm not super familiar with the telegram lib

hearty sun
#

it worked! You are awesome.

#

On another note, I was wondering if you can help us in getting an enterprise account. We are building a 2-way audio chat platform for people to talk to AI version of social media influencers. We have partnered with 5 influencers (with combined followership of 5M+) for launch. We work with influencers in licensed manner to clone their personality and voice and launch as their office AI avatar. We expect to see more than 10,000 hours of audio generation in starting 3 months (estimating from the success of similar apps in the market such as Forever Voices).