Melvin-Abraham / Google-Assistant-Unofficial-Desktop-Client

A cross-platform unofficial Google Assistant Client for Desktop (powered by Google Assistant SDK)
Apache License 2.0
3.6k stars 407 forks source link

No Audio Output on some devices #495

Open melliiii opened 3 years ago

melliiii commented 3 years ago

Describe the bug Hey, for some odd reason I dont get a Audio Output (TTS) on my Headset, but on my Monitor Speakers. The Feedback "Ping" works on every device.

To Reproduce Steps to reproduce the behavior:

  1. Set Headset as Default Audio Device
  2. Tell Assistant to do something
  3. See the Audio on Windows Volume Mixer, but no Output can be heard
  4. Test that Headphones work with other programs (In my case Spotify and Youtube in Firefox)
  5. Change Monitor Speakers as Default Audio Device
  6. Tell Assistant to do something
  7. Now I get Audio via my Monitor

Expected behavior No matter what audio device is set as default, the TTS audio should play back.

Desktop (please complete the following information):

melliiii commented 3 years ago

"Enable Audio Output" Option in the Settings is enabled.

im-coder-lg commented 3 years ago

Try setting the headphones for the speaker in the settings.

melliiii commented 3 years ago

grafik Only Headphones are enabled and it wont output TTS. If i only enable the Monitor (directly below) it outputs

grafik Output of the Console with only Headphones enabled

im-coder-lg commented 3 years ago

Not there, in GAUDC

melliiii commented 3 years ago

grafik grafik

Thats all the settings i got

im-coder-lg commented 3 years ago

Wait what? Lemme check for a minute

im-coder-lg commented 3 years ago

I am posting an image, check that

im-coder-lg commented 3 years ago

image See that :arrow_up:

im-coder-lg commented 3 years ago

If it is not there, you have to build it yourself. Tell me if you need here.

melliiii commented 3 years ago

Dont have those options :o Do i have build it from source or is there a compiled version?

im-coder-lg commented 3 years ago

Building from source is best. Do you know how?

im-coder-lg commented 3 years ago

If you don't then refer this: https://github.com/Melvin-Abraham/Google-Assistant-Unofficial-Desktop-Client/issues/490#issuecomment-901915422

melliiii commented 3 years ago

Yes I do ^^ Ill get back to you when im done

im-coder-lg commented 3 years ago

Don't forget: you need:

melliiii commented 3 years ago

I wanna build on my Programming VM, but it takes a while to boot xD I got all of that :3

im-coder-lg commented 3 years ago

Good!

im-coder-lg commented 3 years ago

What OS is it?

melliiii commented 3 years ago

Ubuntu :D Mostly used for Java programming

im-coder-lg commented 3 years ago

That surely does work.

melliiii commented 3 years ago

Yeah, all that stuff is on a Server thats in my bedroom ^^ But its rather old and the raid module only supports HDDs so it takes a while to start the Hyper-V instance etc

im-coder-lg commented 3 years ago

You must always remember, if there are new commits/features you ever want, you have to build it until the next release with the compiled version is out. And the next release will be a little sooner.

im-coder-lg commented 3 years ago

Now, does it successfully work?

melliiii commented 3 years ago

NPM install takes a while, ill get back to you when its done

im-coder-lg commented 3 years ago
  • OS: Windows 10 Pro Build 19042.1165
  • Version 1.0.0-rc.1 for Windows
  • Headphones: Logitech G533
  • Monitor: AOC 2460G5

Oof, the version:

  • Version 1.0.0-rc.1 for Windows

Try using the latest release candidate(1.0.0-rc2) or build from source(which you are doing)

melliiii commented 3 years ago

Yeah thats a typo, it was rc.2

im-coder-lg commented 3 years ago

okay, now if the build succeeds, mainly, go check the dist folder. I don't know how the folder is but it might show something like linux-unpacked or something like that.

melliiii commented 3 years ago

Okay something is reeealllyyy weird

melliiii commented 3 years ago

Same issue as before, but now i have some more settings

im-coder-lg commented 3 years ago

what? change the speaker thing there. its not weird, it's full of features.

melliiii commented 3 years ago

If i start OBS to record, OBS captures the Audio i cant hear and if i replay the recording i really hear the sound. OBS only captures what i should hear so something fishy is going on

im-coder-lg commented 3 years ago

check this out: image

change the speaker thing

melliiii commented 3 years ago

I did, changing works, but i still cant hear the TTS Audio but i see it in Windows Volume Mixer. And if i record what i should hear in OBS (desktop audio) i also hear what GAUDC says in the recording

im-coder-lg commented 3 years ago

If i start OBS to record, OBS captures the Audio i cant hear and if i replay the recording i really hear the sound. OBS only captures what i should hear so something fishy is going on

that is OBS. it captures all the audio, and I know it because, I was seeing a chess video and I wanted to test OBS but the audio went really down. But is the build and changing the speaker inside GAUDC work?

melliiii commented 3 years ago

Yeah changing speakers works... Maybe i just have to live with the fact, that i dont get Audio Playback of the text-to-speech voice over my headset and just let it output on my monitor

im-coder-lg commented 3 years ago

strange... /ping @Melvin-Abraham is this really fine? I have a wired headphone and I hear the ping in that properly. Try using wired headphones.

im-coder-lg commented 3 years ago

Yeah changing speakers works... Maybe i just have to live with the fact, that i dont get Audio Playback of the text-to-speech voice over my headset and just let it output on my monitor

wait does it work

melliiii commented 3 years ago

Just to clarify: No matter what audio device i use, the "ping" always is hearable. Text To Speech only works on the Monitor, not on the headset. Not even on the manual build where i can select the output device instead of it using standard

im-coder-lg commented 3 years ago

brb one min...

im-coder-lg commented 3 years ago

it works on my PC, I hear both the ping and the audio response. Maybe you must use wired headphones.

melliiii commented 3 years ago

Hmm i think i just let the output go to the monitor... Thats fine for now, but thank you very much for your help!

im-coder-lg commented 3 years ago

Anytime!

Melvin-Abraham commented 3 years ago

@melliiii This is definitely a bug. I will try to investigate. Reopening issue

im-coder-lg commented 3 years ago

oh yeah @Melvin-Abraham it doesn't work even if he switches speaker output in the settings, can you check about that? He told that he let the output go to the monitor too.

melliiii commented 3 years ago

@melliiii This is definitely a bug. I will try to investigate. Reopening issue

If you need any logs/specifications let me know ^^

oh yeah @Melvin-Abraham it doesn't work even if he switches speaker output in the settings, can you check about that? He told that he let the output go to the monitor too.

She*, actually :D But you couldnt have known

im-coder-lg commented 3 years ago

Sorry and oh yeah there was a log screenshot in this issue somewhere. Just FYI.

Melvin-Abraham commented 3 years ago

@melliiii What options do you have for "Microphone Source" and "Speaker Source" when connecting to your Bluetooth headset (connect first and then open the settings) and which options did you choose for respective the settings?

melliiii commented 3 years ago

Microphone Options: grafik

Speaker Options: grafik

Selected: Default Anua Mic CM 900 and currently 2460G5 (would be replaced by "Default Logitech G533" if I would get Audio on that thing)

im-coder-lg commented 3 years ago

Wait what? What was that? It is supposed to work! I use a Windows 7 computer with wired headphones and it works successfully. Ping+Text-to-Speech works(both) but what is that? is that buggy?

melliiii commented 3 years ago

Hm maybe its a Windows 10 thing?

melliiii commented 3 years ago

grafik When i switch between Headset and monitor and it plays audio i get this Exception that isnt handled. But the Audio plays fine as long as I selected the monitor. Its thrown because player.start() is asynchronous

Still that shouldnt be an issue