How to get bark (AI text to speak generator) to work after installing it

Аватар автора
Python волшебство
Warning: The example audio is a little louder than my voice. Made this quick video to help other people out with getting bark to work. Middle of the night, nervous as its the first time making such a video, but oh well. 1. CMD "pip install soundfile IPython" 3. CMD "pip uninstall torch torchvision torchaudio" My script: from bark import SAMPLE_RATE, generate_audio, preload_models from IPython.display import Audio from scipy.io.wavfile import write as write_wav # download and load all models preload_models( text_use_small=True, coarse_use_small=True, fine_use_small=True, ); # generate audio from text text_prompt = """ I love it when it finally works """ audio_array = generate_audio(text_prompt, history_prompt="en_speaker_1") # play text in notebook Audio(audio_array, rate=SAMPLE_RATE) write_wav("./filename.wav", SAMPLE_RATE, audio_array) Timestamps: 0:00 Intro 0:25 The issues 0:47 How I fixed it 2:34 The script 3:28 Example of it running (louder than me) word salad for the algorithm: AI text to speak speach bark github git how to python tech cmd commandprompt install fix bug bugs help

0/0


0/0

0/0

0/0