ComfyUI-Whisper
ComfyUI-Whisper copied to clipboard
other language
Is there a way to utalize this in other languages?
yes, whisper supports various languages by default.
You might need to add new fonts in the fonts directory depending on the target language, to display the subtitles properly
@Tobe2d
Thanks for the reply 🙏
I have tested this but the text is broken thats why I came here to ask in case someghing withn the code need to support UTF-8 Unicode encoding
If you print the transcription to terminal, it should be correct, the issue is most likely with PIL not rendering other fonts properly.
Perhaps I'm incorrectly loading the font here: font = ImageFont.truetype(os.path.join(FONT_DIR,font_family), font_size)
You can try to create 1 image with your font using PIL in an external python script & see if it works as expected. I'll also look into the issue.
Hey, thanks for the sugesstion but I'm actually not sure how to implement the changes you've suggested. Would it be possible for you to help me out by testing it? here is link to the font I was testing on https://fonts.google.com/noto/specimen/Noto+Sans+Arabic