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

404 Error when accessing remoteAudio client on Windows (and a few more Windows Audio related issues) #30

Closed
Littlechay opened this issue Aug 13, 2021 · 7 comments
Assignees
Labels

Comments

@Littlechay
Copy link

HI.

I have remote raspberry pi (a 3b in this case) with a Yeasu FT857d attached via a generic USB sound card. in my quest to find a good method of providing 2-way audio from my W10 pc to the rig I came across remoteAudio. Everything looks very sane to me, it is the way I want to go, but I just can't get it work. Not a squeak in either direction, no web controls - all I get is a 404 error from the server?

I have NATs installed on the Pi. It runs without error
I have remote audio on the pi and run it as ./remoteAudio server nats - also runs without error
I have the config file on the pi as per the one in the repository with the only changes being the rig name and bumping up the buffering to 100ms

On the windows machine I am running remote audio .\remoteAudio.exe client nats --config .remoteAudio.toml
It appears to run fine - output as follows.

> .\remoteAudio.exe client nats --config .remoteAudio.toml
Using config file: .remoteAudio.toml
2021/08/13 23:30:39 output sound device: CABLE-B Input (VB-Audio Cable B), HostAPI: Windows WASAPI
2021/08/13 23:30:39 input sound device: CABLE-A Output (VB-Audio Cable A), HostAPI: Windows WASAPI
2021/08/13 23:30:42 added audio server ft857d
2021/08/13 23:30:42 webserver listening on localhost:9090

The config file is as per the on in the repository but with beffers to 100ms and the nats ip set to that of the pi

The sound card works. I can run rtp over it .
Everything is set to 16bit 48000Hz as far as I can tell.

I have VACs on the windows machine running into JTDX but have also tested to speakers etc..

Audio setup on PCs and streaming in gneral, is not something I know much about. I'd be grateful for any pointers on how to start debugging my setup.

Cheers
Chris ZL1OSC, VP8DSC, ex VP8BKF

@Littlechay
Copy link
Author

Littlechay commented Aug 14, 2021

Further update. I have got things running for no apparent reason except that I started with Pi 4 and a clean install.

Edit: Still no webpage .. just a 404 error from the remoteAudio server.

I may actually have had something working before but not realised as the audio level, at least in the pi to PC direction are so low that it is only audible with AKR (all knobs right). I know the levels are OK as it works via rtp.. Any ideas anybody?

So I know the audio level into the pi's usb card is OK, and OK in Alsa, and I know that it's not OK out of remoteAudio on the Windows PC.

Changing the default volume settings in .remoteAudio.toml or with p commands does very little suggesting that there is very little to work with , or compression occuring, over NATS

@Littlechay
Copy link
Author

OK getting there. now sorry for the noise.

I can't get remoteAudio to connect my virtual audio cable (well nothing at all now in fact!) I wasn't having success VB audio cable so downloaded VAC but the results are exactly the same. Invalid number of channels.... Oh that and still no web interface!

I see this number of channels thing has been reported before in issues but I couldn't find a solution.

.\remoteAudio.exe client nats --config .remoteAudio.toml --output-device-hostapi=WASAPI --stream-on-startup --server-name ft857d
Using config file: .remoteAudio.toml
2021/08/15 16:46:36 output sound device: Line 1 (Virtual Audio Cable), HostAPI: Windows WASAPI
unable to open recording audio stream on device Line 2 (Virtual Audio Cable): Invalid number of channels
PS C:\Users\64210\Documents\Ham Radio>

@Littlechay
Copy link
Author

OK Another update. I can always eventually get remoteAudio and VAC to connect without the "Invalid number of channels" error by toggling the speaker pin on the VAC facing remote audio off then on. To get it to connect the first time I had to toggle spkr on-off-on and subsequently off-on at least once. After a couple of reboots it seems stable. Only issue is that W10 sees the cable as a speaker so configuration is a bit odd! So all working ok except no web interface. Would love to get that up and have easy access to the volume controls. Any pointers from anybody please? Could be a path issue? What path should the index.html be on?

@peterus
Copy link

peterus commented Aug 18, 2021

which address are you using for the webpage? for you it should be the ip from the windows machine.

@Littlechay
Copy link
Author

Littlechay commented Aug 18, 2021

I'm using the correct address. I've been doing some investigating. I believe the problem lies in the way the paths are encoded /zzzzz/xxxx/ instead of the windows \zzzzzz\xxxxx

Edit.. As stated earlier I get the 404 error from the remoteAudio server as it is unable to find the content.

@dh1tw
Copy link
Owner

dh1tw commented Aug 20, 2021

Hi Chris,
the missing web interface is unfortunately a bug in the windows binary. Since remoteAudio is a single static binary file, I include the HTML, CSS, JS... files during compilation. Since Go 1.16 this is natively supported. There must be something wrong in the windows build pipeline. A few days ago Marios, 5B4WN reported the bug as well.

Until I have provided a bugfix, you can interact with the remoteAudio client through it's REST API if you don't mind using curl or httpie from the command line.

Another temporary workaround would be to run a remoteAudio instance on a MacOS or Linux box and access the web interface then from your windows PC.

In the long run I have to think about a more useful user interface. It was just a quick hack and doesn't provide too much functionality, anyway.

The order day I realized that the version of portaudio which ships with remoteAudio for windows is actually pretty old. I have to talk to the Msys2 guys which provide the windows compile version with the pacman package manager. That might also solve some more Windows Audio API related issues.

@dh1tw dh1tw self-assigned this Aug 20, 2021
@dh1tw dh1tw added the bug label Aug 20, 2021
@dh1tw dh1tw changed the title just struggling 404 Error when accessing remoteAudio client on Windows (and a few more Windows Audio related issues) Aug 20, 2021
dh1tw added a commit that referenced this issue Nov 7, 2021
@dh1tw
Copy link
Owner

dh1tw commented Nov 7, 2021

Solved with remoteAudio v0.5.2

@dh1tw dh1tw closed this as completed Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants