blackhole1218 commited on
Commit
971cbfc
·
1 Parent(s): 733799a

Fix Supertone API URL: api.supertone.ai -> supertoneapi.com

Browse files
Files changed (1) hide show
  1. tts.py +2 -1
tts.py CHANGED
@@ -150,7 +150,7 @@ def predict_supertone_tts(text: str, model: str = "sona_speech_1") -> str:
150
  voice_id = SUPERTONE_VOICE_ID
151
 
152
  response = requests.post(
153
- f"https://api.supertone.ai/v1/text-to-speech/{voice_id}?output_format=wav",
154
  headers={
155
  "x-sup-api-key": api_key,
156
  "Content-Type": "application/json",
@@ -159,6 +159,7 @@ def predict_supertone_tts(text: str, model: str = "sona_speech_1") -> str:
159
  "text": text,
160
  "language": "ko",
161
  "model": model,
 
162
  "voice_settings": {
163
  "pitch_shift": 0,
164
  "pitch_variance": 1,
 
150
  voice_id = SUPERTONE_VOICE_ID
151
 
152
  response = requests.post(
153
+ f"https://supertoneapi.com/v1/text-to-speech/{voice_id}",
154
  headers={
155
  "x-sup-api-key": api_key,
156
  "Content-Type": "application/json",
 
159
  "text": text,
160
  "language": "ko",
161
  "model": model,
162
+ "output_format": "wav",
163
  "voice_settings": {
164
  "pitch_shift": 0,
165
  "pitch_variance": 1,