oscie57 / tiktok-voice

Simple Python script to interact with the TikTok TTS API
535 stars 80 forks source link

It's throwing this issue i'm not sure why #41

Open JeremyS98 opened 10 months ago

JeremyS98 commented 10 months ago

it finished making about 15 videos and then this popped up, I've tried running it again but nothing happened This is what it shows:

│ Saving Text to MP3 files... │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ Working... ---------------------------------------- 2.3 it/s ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Sorry, something went wrong with this version! Try again, and feel free to report this issue at GitHub or the │ │ Discord community. │ │ Version: 3.2.1 │ │ Error: argument should be a bytes-like object or ASCII string, not 'NoneType' │ │ Config: {'allow_nsfw': False, 'theme': 'dark', 'times_to_run': 100, 'opacity': 0.9, 'storymode': True, │ │ 'storymodemethod': 1, 'storymode_max_length': 20000, 'resolution_w': 1080, 'resolution_h': 1920, 'zoom': 1.0, │ │ 'background': {'background_video': 'minecraft', 'background_audio': 'lofi', 'background_audio_volume': 0.15, │ │ 'enable_extra_audio': False, 'background_thumbnail': False, 'background_thumbnail_font_family': 'arial', │ │ 'background_thumbnail_font_size': 96, 'background_thumbnail_font_color': '255,255,255'}, 'tts': {'voice_choice': │ │ 'tiktok', 'random_voice': False, 'elevenlabs_voice_name': 'Bella', 'elevenlabs_api_key': 'REDACTED', │ │ 'aws_polly_voice': 'Matthew', 'streamlabs_polly_voice': 'Matthew', 'tiktok_voice': 'en_uk_003', 'tiktok_sessionid': │ │ 'REDACTED', 'python_voice': '1', 'py_voice_num': '2', 'silence_duration': 0.3, 'no_emojis': False}} │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ Traceback (most recent call last): File "D:\RedditVideoMakerBot-master\main.py", line 132, in raise err File "D:\RedditVideoMakerBot-master\main.py", line 114, in run_many(config["settings"]["times_to_run"]) File "D:\RedditVideoMakerBot-master\main.py", line 69, in run_many main() File "D:\RedditVideoMakerBot-master\main.py", line 51, in main length, number_of_comments = save_text_to_mp3(reddit_object) File "D:\RedditVideoMakerBot-master\video_creation\voices.py", line 49, in save_text_to_mp3 return text_to_mp3.run() File "D:\RedditVideoMakerBot-master\TTS\engine_wrapper.py", line 88, in run self.call_tts(f"postaudio-{idx}", process_text(text)) File "D:\RedditVideoMakerBot-master\TTS\engine_wrapper.py", line 149, in call_tts self.tts_module.run( File "D:\RedditVideoMakerBot-master\TTS\TikTok.py", line 117, in run decoded_voices = base64.b64decode(raw_voices) File "C:\Users\Jeremy\AppData\Local\Programs\Python\Python310\lib\base64.py", line 80, in b64decode s = _bytes_from_decode_data(s) File "C:\Users\Jeremy\AppData\Local\Programs\Python\Python310\lib\base64.py", line 45, in _bytes_from_decode_data raise TypeError("argument should be a bytes-like object or ASCII " TypeError: argument should be a bytes-like object or ASCII string, not 'NoneType'

D:\RedditVideoMakerBot-master>