Eleven labs, your opinion and experience
Back to Show and Tell#141 rudolf
how do I copy my API key? it's a protected field.
-- (Musicant):
Here's the easiest script. It cannot use voices by voice ids, choose linguistic models or alter voice parameters. It just generates some text with chosen voice, plays it back and then saves to a file. Read it carefully and edit where it is applicable.
To run the script:
1. Install Python.
2. Launch python to create some necessary files.
Now type "exit()" command without quotes but keeping parentheses and press enter. The python interpreter will be closed.
3. Run windows terminal and run the following command for installing eleven labs python api:
pip install elevenlabs
4. Edit the following code according to your preferences. For more info read the lines beginning with hash sign.
from elevenlabs import generate, play, save, set_api_key
# edit the values in the lines below according to your preferences. Keep the quotes at their places. api key is in your profile.
voice='Elli'
api_key='your_api_key'
text='This is a text to generate.'
save_path='d:/elevenlabs_test.mp3'
#end of preferences
# setting api key and generate audio
set_api_key(api_key)
speech = generate(text)
#Playing generated audio
play(speech)
#saving audio to the destination set in save_path variable
save (speech, save_path)
5. Run this script in python terminal or save it as a file with the .py extension and launch from the explorer.
For more advanced stuff learn python yourself!
--
#142 Musicant
Don't know about gpt4 but gpt3.5 didn't understand what elevenlabs is.
-- (rudolf):
there's probably also a way to modify the script by yourself or chatGPT and make it with wxPython, so it opens a window in which you can enter the text, choose the model and the path and so on. but well.
-- (Musicant):
Here's the easiest script. It cannot use voices by voice ids, choose linguistic models or alter voice parameters. It just generates some text with chosen voice, plays it back and then saves to a file. Read it carefully and edit where it is applicable.
To run the script:
1. Install Python.
2. Launch python to create some necessary files.
Now type "exit()" command without quotes but keeping parentheses and press enter. The python interpreter will be closed.
3. Run windows terminal and run the following command for installing eleven labs python api:
pip install elevenlabs
4. Edit the following code according to your preferences. For more info read the lines beginning with hash sign.
from elevenlabs import generate, play, save, set_api_key
# edit the values in the lines below according to your preferences. Keep the quotes at their places. api key is in your profile.
voice='Elli'
api_key='your_api_key'
text='This is a text to generate.'
save_path='d:/elevenlabs_test.mp3'
#end of preferences
# setting api key and generate audio
set_api_key(api_key)
speech = generate(text)
#Playing generated audio
play(speech)
#saving audio to the destination set in save_path variable
save (speech, save_path)
5. Run this script in python terminal or save it as a file with the .py extension and launch from the explorer.
For more advanced stuff learn python yourself!
--
--
#143 Musicant
There was a button to copy it as far as i remember.
-- (rudolf):
how do I copy my API key? it's a protected field.
-- (Musicant):
Here's the easiest script. It cannot use voices by voice ids, choose linguistic models or alter voice parameters. It just generates some text with chosen voice, plays it back and then saves to a file. Read it carefully and edit where it is applicable.
To run the script:
1. Install Python.
2. Launch python to create some necessary files.
Now type "exit()" command without quotes but keeping parentheses and press enter. The python interpreter will be closed.
3. Run windows terminal and run the following command for installing eleven labs python api:
pip install elevenlabs
4. Edit the following code according to your preferences. For more info read the lines beginning with hash sign.
from elevenlabs import generate, play, save, set_api_key
# edit the values in the lines below according to your preferences. Keep the quotes at their places. api key is in your profile.
voice='Elli'
api_key='your_api_key'
text='This is a text to generate.'
save_path='d:/elevenlabs_test.mp3'
#end of preferences
# setting api key and generate audio
set_api_key(api_key)
speech = generate(text)
#Playing generated audio
play(speech)
#saving audio to the destination set in save_path variable
save (speech, save_path)
5. Run this script in python terminal or save it as a file with the .py extension and launch from the explorer.
For more advanced stuff learn python yourself!
--
--
#144 rudolf
all buttons there are unlabeled though.
#145 rudolf
yeah, but if you explayn to it and give it the link where a list of the models is it might would work. or just make for once by yourself work and make a list by yourself and say chatGPT just what to modify. :D. mean in no offense way.
-- (Musicant):
Don't know about gpt4 but gpt3.5 didn't understand what elevenlabs is.
-- (rudolf):
there's probably also a way to modify the script by yourself or chatGPT and make it with wxPython, so it opens a window in which you can enter the text, choose the model and the path and so on. but well.
-- (Musicant):
Here's the easiest script. It cannot use voices by voice ids, choose linguistic models or alter voice parameters. It just generates some text with chosen voice, plays it back and then saves to a file. Read it carefully and edit where it is applicable.
To run the script:
1. Install Python.
2. Launch python to create some necessary files.
Now type "exit()" command without quotes but keeping parentheses and press enter. The python interpreter will be closed.
3. Run windows terminal and run the following command for installing eleven labs python api:
pip install elevenlabs
4. Edit the following code according to your preferences. For more info read the lines beginning with hash sign.
from elevenlabs import generate, play, save, set_api_key
# edit the values in the lines below according to your preferences. Keep the quotes at their places. api key is in your profile.
voice='Elli'
api_key='your_api_key'
text='This is a text to generate.'
save_path='d:/elevenlabs_test.mp3'
#end of preferences
# setting api key and generate audio
set_api_key(api_key)
speech = generate(text)
#Playing generated audio
play(speech)
#saving audio to the destination set in save_path variable
save (speech, save_path)
5. Run this script in python terminal or save it as a file with the .py extension and launch from the explorer.
For more advanced stuff learn python yourself!
--
--
--
#146 rudolf
I actually made a little change at this project. I'll publish it on github in a feew days if the orginal poster is okay with that.
#147 marchoffmann
It'd be useful for me who is to lazy to get python and do this haha.
#148 marchoffmann
Or heh compile it if you can.
#149 rudolf
brings you nothing. you need to enter the API in the code. hardly possible if the code is compiled. :P
well, that's not the case in my version though.
#150 Jonathan
lol on github?
if you put every little chat gpt modified thing on github then I am sorry for the poor server.
#151 Musicant
Many young people are used to think that internet works as easy as the wind blows and all the servers are endless so you can put there whatever you want even if it is just one line of code. Probably, you, Jonathan is about thirty something years old or more as i am, so for us this behaveour is a bit unusual. Don't mean to offend anybody. Just small note taken from watching people's habits.
-- (Jonathan):
lol on github?
if you put every little chat gpt modified thing on github then I am sorry for the poor server.
--
#152 Musicant
No problem.
-- (rudolf):
I actually made a little change at this project. I'll publish it on github in a feew days if the orginal poster is okay with that.
--
#153 Musicant
I think that in this case the efford is equal to the case where you write all the code yourself or even more. You need to waste a lot of time to give the task and then to supervise the code yourself anyway. However, i didn't see the latest chat gpt which seems can parse web pages now. When i tried it last time it told me that it cannot retrieve any data from the internet. It was last year though.
-- (rudolf):
yeah, but if you explayn to it and give it the link where a list of the models is it might would work. or just make for once by yourself work and make a list by yourself and say chatGPT just what to modify. :D. mean in no offense way.
-- (Musicant):
Don't know about gpt4 but gpt3.5 didn't understand what elevenlabs is.
-- (rudolf):
there's probably also a way to modify the script by yourself or chatGPT and make it with wxPython, so it opens a window in which you can enter the text, choose the model and the path and so on. but well.
-- (Musicant):
Here's the easiest script. It cannot use voices by voice ids, choose linguistic models or alter voice parameters. It just generates some text with chosen voice, plays it back and then saves to a file. Read it carefully and edit where it is applicable.
To run the script:
1. Install Python.
2. Launch python to create some necessary files.
Now type "exit()" command without quotes but keeping parentheses and press enter. The python interpreter will be closed.
3. Run windows terminal and run the following command for installing eleven labs python api:
pip install elevenlabs
4. Edit the following code according to your preferences. For more info read the lines beginning with hash sign.
from elevenlabs import generate, play, save, set_api_key
# edit the values in the lines below according to your preferences. Keep the quotes at their places. api key is in your profile.
voice='Elli'
api_key='your_api_key'
text='This is a text to generate.'
save_path='d:/elevenlabs_test.mp3'
#end of preferences
# setting api key and generate audio
set_api_key(api_key)
speech = generate(text)
#Playing generated audio
play(speech)
#saving audio to the destination set in save_path variable
save (speech, save_path)
5. Run this script in python terminal or save it as a file with the .py extension and launch from the explorer.
For more advanced stuff learn python yourself!
--
--
--
--
#154 Jonathan
oh bro not completely correct, I am 14 XD.
-- (Musicant):
Many young people are used to think that internet works as easy as the wind blows and all the servers are endless so you can put there whatever you want even if it is just one line of code. Probably, you, Jonathan is about thirty something years old or more as i am, so for us this behaveour is a bit unusual. Don't mean to offend anybody. Just small note taken from watching people's habits.
-- (Jonathan):
lol on github?
if you put every little chat gpt modified thing on github then I am sorry for the poor server.
--
--
#155 Musicant
Nice then, you have so much time to go ahead and it is wonderfull!
-- (Jonathan):
oh bro not completely correct, I am 14 XD.
-- (Musicant):
Many young people are used to think that internet works as easy as the wind blows and all the servers are endless so you can put there whatever you want even if it is just one line of code. Probably, you, Jonathan is about thirty something years old or more as i am, so for us this behaveour is a bit unusual. Don't mean to offend anybody. Just small note taken from watching people's habits.
-- (Jonathan):
lol on github?
if you put every little chat gpt modified thing on github then I am sorry for the poor server.
--
--
--
#156 marchoffmann
#157 Musicant
The script refers to the voice by name. So if there is another voice with the same name it could use that one instead. But i tried it before posting and it seemed to me that it was the voice you need. There is another way to refer to the particular voice by its ID. But i don't have any recordings with Elli in my history to try to retrieve the ID. Besides i don't see that possibility on the website though it seemed to me that i saw it there before.
#158 marchoffmann
O ok. Just listen to the first post of this thread :D that was her
#159 Jonathan
oh yeah, na thats not she.