Vijish commited on
Commit
6c1f411
1 Parent(s): 798e770

Update voice_processing.py

Browse files
Files changed (1) hide show
  1. voice_processing.py +2 -1
voice_processing.py CHANGED
@@ -163,7 +163,8 @@ def tts(model_name, tts_text, tts_voice, index_rate, use_uploaded_voice, uploade
163
  print(f"Audio duration: {duration}s")
164
  if limitation and duration >= 20:
165
  return (
166
- f"Audio should be None,
 
167
  None,
168
  )
169
 
 
163
  print(f"Audio duration: {duration}s")
164
  if limitation and duration >= 20:
165
  return (
166
+ f"Audio should be less than 20 seconds in this huggingface space, but got {duration}s.",
167
+ None,
168
  None,
169
  )
170