#4665 TaskCfgVTT(is_cuda=True, uuid='9d814fe8f6', cache_folder='C:/win-pyvideotrans-v3.99-0508/tmp/10756/9d814fe8f6', target_d

191.6* Posted at: 7 hours ago 👁15

ASR Error [Deepgram.com] '>' not supported between instances of 'int' and 'str'
Traceback (most recent call last):
File "videotrans\recognition\_base.py", line 143, in run
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 421, in exc_check
tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 105, in run
File "videotrans\task\trans_create.py", line 390, in recogn
File "videotrans\recognition\__init__.py", line 265, in run
File "videotrans\recognition\_base.py", line 180, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\recognition\_deepgram.py", line 98, in _exec
File "deepgram_captions\srt.py", line 10, in srt
File "deepgram_captions\converters.py", line 18, in get_lines
TypeError: '>' not supported between instances of 'int' and 'str'
TaskCfgVTT(is_cuda=True, uuid='9d814fe8f6', cache_folder='C:/win-pyvideotrans-v3.99-0508/tmp/10756/9d814fe8f6', target_dir='E:/_video_out/Poor Girl Joins a Rich School and Gets Bullied Until the Hottest Boy Protects Her-webm', source_language='English', source_language_code='en', source_sub='E:/_video_out/Poor Girl Joins a Rich School and Gets Bullied Until the Hottest Boy Protects Her-webm/en.srt', source_wav='C:/win-pyvideotrans-v3.99-0508/tmp/10756/9d814fe8f6/en.wav', source_wav_output='E:/_video_out/Poor Girl Joins a Rich School and Gets Bullied Until the Hottest Boy Protects Her-webm/en.m4a', target_language='Portuguese', target_language_code='pt', target_sub='E:/_video_out/Poor Girl Joins a Rich School and Gets Bullied Until the Hottest Boy Protects Her-webm/pt.srt', target_wav='C:/win-pyvideotrans-v3.99-0508/tmp/10756/9d814fe8f6/target.wav', target_wav_output='E:/_video_out/Poor Girl Joins a Rich School and Gets Bullied Until the Hottest Boy Protects Her-webm/pt.m4a', name='E:/Poor Girl Joins a Rich School and Gets Bullied Until the Hottest Boy Protects Her.webm', noextname='Poor Girl Joins a Rich School and Gets Bullied Until the Hottest Boy Protects Her', basename='Poor Girl Joins a Rich School and Gets Bullied Until the Hottest Boy Protects Her.webm', ext='webm', dirname='E:/', shound_del_name=None, translate_type=0, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=False, video_autorate=True, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=10, model_name='nova-3', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='tiqu', subtitles='', targetdir_mp4='E:/_video_out/Poor Girl Joins a Rich School and Gets Bullied Until the Hottest Boy Protects Her-webm/Poor Girl Joins a Rich School and Gets Bullied Until the Hottest Boy Protects Her.mp4', novoice_mp4='C:/win-pyvideotrans-v3.99-0508/tmp/10756/9d814fe8f6/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='C:/win-pyvideotrans-v3.99-0508/tmp/10756/9d814fe8f6/vocal.wav', back_audio='', clear_cache=True, background_music=None, subtitle_type=0, only_out_mp4=False, recogn2pass=True, output_srt=0, copysrt_rawvideo=False, loop_backaudio=0, backaudio_volume=0.8)


=
system:Windows-10-10.0.22631-SP0
version:v3.99
frozen:True
language:en
root_dir:C:/win-pyvideotrans-v3.99-0508

1 Replies

This error is caused by a type mismatch in the Deepgram API response – specifically, the deepgram_captions library expects an integer where a string was returned, likely due to an audio processing or API version incompatibility.

Solutions:

  1. Update pyVideoTrans to the latest version (v3.99) – This may include fixes for Deepgram integration.
  2. Try a different ASR channel – Use faster-whisper (local) or another online service temporarily to verify if the problem is isolated to Deepgram.
  3. Check your audio input – Ensure the video file is valid, not corrupted, and contains clear speech. Long or unusual file names (e.g., containing symbols) may cause issues; rename to short English path.
  4. Configure a network proxy if required – Deepgram requires internet access; if you’re in a region with restrictions, set a proxy in the software’s main interface.
  5. Lower concurrency – If multiple tasks are running, reduce the number of parallel processes (Advanced options → Maximum processes → 1).

If the problem persists, provide the last 30 lines from the log file (logs/ directory) for further analysis.

Relevant documentation:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Related resource