Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detecting wrong language and Unicode error #3

Open
Rudra644 opened this issue Dec 23, 2023 · 1 comment
Open

Detecting wrong language and Unicode error #3

Rudra644 opened this issue Dec 23, 2023 · 1 comment

Comments

@Rudra644
Copy link

The youtube video is in 98% Hindi along with some english words.
I am getting this error while trying to do transcription.

error

Detected language: ur
Traceback (most recent call last):
File "C:\Users\geeky\OneDrive\Desktop\YT Transcribe\youtube_audio_to_text.py", line 55, in
create_and_open_txt(transcribed_text, f"output_{language}.txt")
File "C:\Users\geeky\OneDrive\Desktop\YT Transcribe\youtube_audio_to_text.py", line 24, in create_and_open_txt
file.write(text)
File "C:\Users\geeky\anaconda3\envs\yt\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 1-5: character maps to

@Rudra644
Copy link
Author

Is their any way to specify language manually? Beacuse hindi and urdu are very similar when spoken but they have different writing script Devanagari & Arabic respectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant