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!
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!
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!
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!
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.
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!
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.
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.
okay so jonathan made this program like x compiled it for me and i was testing it and
it's not ellie so i don't know you gave incorrect information as i knew it would happen so it's
not ellie it's some other voice which they probably replaced the ap api with yep so she's
gone
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.