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

Doesn't work using Python 3.10.4 - 64 bits, and Win 10. Please help me :) #3

Closed
d4nfy opened this issue May 31, 2023 · 13 comments
Closed

Comments

@d4nfy
Copy link

d4nfy commented May 31, 2023

I tried many things to fix it, first with Py 11, Py 3.8.3. Currently on Py 3.10.4.
Capture d’écran 2023-05-31 204341
I tried to install by pip because i have mistakes with last compiled version (and the two previous versions too). In the folder, this is the 0.1.14 compiled and clone version of Git repository.

merged-with-compilated
merged-with-compilated-2

Then, the error with the .pyw file :
IDLE-Shell-3-10-4

With command prompt, successfully installed with Py 3.10.4 but error with main_window (I already installed manual languages .cache\vosk and ffmpeg in system32) :

cmd-installed
cmd-error

@d4nfy
Copy link
Author

d4nfy commented May 31, 2023

specs : Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz 2.80 GHz RAM 16,0 Go

@botbahlul
Copy link
Owner

have you put those ffmpeg.exe and ffprobe.exe into C:\Windows\system32 folder?

@d4nfy
Copy link
Author

d4nfy commented May 31, 2023

Yup
ffprobe-ffmpeg
With regard to the last compiled version, here's the error :
last-version

last-version-2

@botbahlul
Copy link
Owner

Is C:\Windows\system32 already added to your PATH ENVIRONTMENT?
Can you show me the screenshot when you call ffmpeg from C:\ ?
image
image

@d4nfy
Copy link
Author

d4nfy commented May 31, 2023

Yeah already done.

yup-2
yup-3

@botbahlul
Copy link
Owner

botbahlul commented Jun 1, 2023

can you please save this code below as test.py

import subprocess

tasklist_output = subprocess.check_output(['tasklist'], creationflags=subprocess.CREATE_NO_WINDOW).decode('utf-8')
python_pid = None
for line in tasklist_output.split('\n'):
    if "python" in line:
        print(line)
        python_pid = line.split()[1]
        print("python_pid = %s" %python_pid)
        break

and then run it with python

python test.py

then show me the screenshot of the output

@d4nfy
Copy link
Author

d4nfy commented Jun 1, 2023

Indeed, you were right before the edit, the issue came from UTF-8 not activated in command prompt (i was in Latin, maybe because I'm from France). The exe seems to launch correctly, i'll try it later.

Here's the result for the script you gave me (after correcting UTF-8)
code-to-test

@d4nfy
Copy link
Author

d4nfy commented Jun 1, 2023

Ok I can open the app thanks. But can't figure out how to configure Line and audio output to use with a headset, my voice is recognized but not the video, I used the same parameters as Readme page and also tried with two virtual cables with VAC and Audio Repeater.

@botbahlul
Copy link
Owner

botbahlul commented Jun 1, 2023

If you're using a PC with HDMI CONNECTED DEVICE AND YOU WAN'T TO HEAR THE AUDIO ON THAT HDMI DEVICE:
image

Launch Audio Repeater MME, NOT Audio Repeater KS!

image
image
image

But if you're using a LAPTOP WITHOUT HDMI CONNECTED DEVICE change the WAVE OUT of AUDIO REPEATER to your laptops SPEAKER DEVICE, or your HEADPHONE DEVICE
image

The Wave Out is the device where you want to hear the audio output.

DONT FORGET TO CLICK THAT START BUTTON! IF IT SUCCESFUL, YOU'LL SEE THAT GREEN PROGRESS BAR OF THE QUEUE
image

THEN CLICK MINIMIZE BUTTON, NOT THE CLOSE BUTTON!

@d4nfy
Copy link
Author

d4nfy commented Jun 1, 2023

Doesn't work, how do you set up the virtual audio cable? Line/Mic Mode ? It seems that, even with Line 1, only the sound of my mic is detected by your software. Nevertheless, I can hear the live from YouTube in my mic.

@botbahlul
Copy link
Owner

botbahlul commented Jun 1, 2023

after VAC installed, just select LINE 1 as DEFAULT in PLAYBACK AND in RECORDING device (right click on it and select Set as default)
image

image

after that I just launch Audio Repeater MMX and set them like those pictures I post above (Line 1 as WAVE IN, and HDMI Speacker as WAVE OUT, or HEADPHONE if I want to hear the output sound from a headphone)

@botbahlul
Copy link
Owner

botbahlul commented Jun 1, 2023

if VAC doesn't work for you then your only last option is to use Stereo Mix as Default Recording device and Speaker or Headphone as Playback device

There are many VAC similar apps but I haven't tried them yet

@d4nfy
Copy link
Author

d4nfy commented Jun 1, 2023

It's working ! Thanks a lot :)

@d4nfy d4nfy closed this as completed Jun 1, 2023
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

2 participants