poemsforaphrodite commited on
Commit
bec1b9a
1 Parent(s): 4c5de34

Update openvoice_app.py

Browse files
Files changed (1) hide show
  1. openvoice_app.py +6 -6
openvoice_app.py CHANGED
@@ -76,13 +76,13 @@ def predict(prompt, style, audio_file_pth):
76
  # Find all voice IDs with the name "TrialVoice"
77
  trial_voice_ids = [voice.get("voice_id") for voice in data['voices'] if voice.get("name") == "TrialVoice"]
78
 
79
- # Delete each voice with the name "TrialVoice"
80
- for voice_id in trial_voice_ids:
81
- status_code, response_text = delete_voice(api_key, voice_id)
82
- print(f"Deleted voice ID {voice_id}: Status Code {status_code}, Response {response_text}")
83
 
84
- if not trial_voice_ids:
85
- print("No voices with the name 'TrialVoice' found.")
86
 
87
  return text_hint, save_path, audio_file_pth
88
 
 
76
  # Find all voice IDs with the name "TrialVoice"
77
  trial_voice_ids = [voice.get("voice_id") for voice in data['voices'] if voice.get("name") == "TrialVoice"]
78
 
79
+ # # Delete each voice with the name "TrialVoice"
80
+ # for voice_id in trial_voice_ids:
81
+ # status_code, response_text = delete_voice(api_key, voice_id)
82
+ # print(f"Deleted voice ID {voice_id}: Status Code {status_code}, Response {response_text}")
83
 
84
+ # if not trial_voice_ids:
85
+ # print("No voices with the name 'TrialVoice' found.")
86
 
87
  return text_hint, save_path, audio_file_pth
88