Code Monkey home page Code Monkey logo

Comments (6)

botbahlul avatar botbahlul commented on June 6, 2024

wuzimi

Try to change the code page of your Command Prompt to UTF-8

https://stackoverflow.com/questions/57131654/using-utf-8-encoding-chcp-65001-in-command-prompt-windows-powershell-window#:~:text=You%20must%20additionally%20set%20the,AllUsersCurrentHost%20(all%20users)%20file.

from pyvosklivesubtitle.

wuzimi avatar wuzimi commented on June 6, 2024

Thanks for your instruction and the above problem solved. However a new issue raised. It can now only worked only about 10 seconds and then the app window freezed with the following information on the python window. I tried several times with the same result.

C:\Users\Administrator\Documents\GitHub\pyvosklivesubtitle>pyvosklivesubtitle
Traceback (most recent call last):
File "\?\C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Scripts\pyvosklivesubtitle-script.py", line 33, in
sys.exit(load_entry_point('pyvosklivesubtitle==0.2.1', 'console_scripts', 'pyvosklivesubtitle')())
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\pyvosklivesubtitle_init_.py", line 3996, in main
main_window['-ML-DST-RESULTS-'].update(translated_line + "\n", background_color_for_value='yellow1', append=True, autoscroll=True)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

C:\Users\Administrator\Documents\GitHub\pyvosklivesubtitle>

issue

from pyvosklivesubtitle.

botbahlul avatar botbahlul commented on June 6, 2024

Thanks for your instruction and the above problem solved. However a new issue raised. It can now only worked only about 10 seconds and then the app window freezed with the following information on the python window. I tried several times with the same result.

C:\Users\Administrator\Documents\GitHub\pyvosklivesubtitle>pyvosklivesubtitle Traceback (most recent call last): File "?\C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Scripts\pyvosklivesubtitle-script.py", line 33, in sys.exit(load_entry_point('pyvosklivesubtitle==0.2.1', 'console_scripts', 'pyvosklivesubtitle')()) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\pyvosklivesubtitle__init__.py", line 3996, in main main_window['-ML-DST-RESULTS-'].update(translated_line + "\n", background_color_for_value='yellow1', append=True, autoscroll=True) TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

C:\Users\Administrator\Documents\GitHub\pyvosklivesubtitle>

issue

Have you done these too?

image

If you're still get bug please do a whole screen capture by pressing "Control+Shift+PrintScreen" keys simultaneously when the bug happened and paste it here.

If you don't mind I need to know the live streaming you watch, the audio and translation languages, so I can try to reproduce the error.

from pyvosklivesubtitle.

wuzimi avatar wuzimi commented on June 6, 2024

Yes, I have done that following the instruction you recommended. Anyway I figured out why I had the issue. To do the translation I have to use VPN, but that time I didn't use VPN. After I turned on VPN, the real time transcription works well. So maybe you could consider another version which only provided transcription without translation. By the way, is there any way I can turn off translation so that I can continue to use transcription? Thanks!

from pyvosklivesubtitle.

botbahlul avatar botbahlul commented on June 6, 2024

Yes, I have done that following the instruction you recommended. Anyway I figured out why I had the issue. To do the translation I have to use VPN, but that time I didn't use VPN. After I turned on VPN, the real time transcription works well. So maybe you could consider another version which only provided transcription without translation. By the way, is there any way I can turn off translation so that I can continue to use transcription? Thanks!

It looks like your country has banned all google servers.
To see only original Audio Language captions just select same language for the Translation Language, for example if the Audio Language is Chinese, just select Chinese too for the Translation Language.
The main purpose of this app is TO WATCH A LIVE STREAMING that you didn't understand the language but you wanna know what they were talking about.
If your main purpose is to GET A TRANSCRIPTION FILE OF A VIDEO YOU HAVE ALREADY DOWNLOADED you can try the command line version : vosk_autosrt https://github.com/botbahlul/vosk_autosrt (using VOSK API), or whisper_autosrt https://github.com/botbahlul/whisper_autosrt (using Whisper API), or autosrt https://github.com/botbahlul/autosrt (using Google API).
The most accurate app (I think) is whisper_autosrt, but also is the slowest app.
The fastest app is google autosrt, but also not as accurate as whisper_autosrt.
Feel free to try my other projects : https://github.com/botbahlul?tab=repositories

from pyvosklivesubtitle.

wuzimi avatar wuzimi commented on June 6, 2024

Thanks for your instructions. I did try your other project especially this one: VOSK-Powered-Live-Subtitle-V3 and it works well on my Pixel 4a.

Regarding the current project the main problem is I have to change the code page of your Command Prompt to UTF-8 to use it. Especially if I make this change my other software on PC will be impacted and some fonts can't be displayed correctly. Thanks any way!

from pyvosklivesubtitle.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.