ariG23498 HF Staff commited on
Commit
604667f
·
verified ·
1 Parent(s): 11e41e3

Upload Supertone_supertonic_0.txt with huggingface_hub

Browse files
Files changed (1) hide show
  1. Supertone_supertonic_0.txt +18 -0
Supertone_supertonic_0.txt ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```CODE:
2
+ from supertonic import TTS
3
+
4
+ tts = TTS(auto_download=True)
5
+
6
+ style = tts.get_voice_style(voice_name="M1")
7
+
8
+ text = "The train delay was announced at 4:45 PM on Wed, Apr 3, 2024 due to track maintenance."
9
+ wav, duration = tts.synthesize(text, voice_style=style)
10
+
11
+ tts.save_audio(wav, "output.wav")
12
+ ```
13
+
14
+ ERROR:
15
+ Traceback (most recent call last):
16
+ File "/tmp/Supertone_supertonic_0JVtTs8.py", line 23, in <module>
17
+ from supertonic import TTS
18
+ ModuleNotFoundError: No module named 'supertonic'