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

Configuration steps #11

Open
tgsavs69 opened this issue Jan 28, 2021 · 6 comments
Open

Configuration steps #11

tgsavs69 opened this issue Jan 28, 2021 · 6 comments

Comments

@tgsavs69
Copy link

Hello,

I want to use your project for a personal project but I struggle to configure the pulseaudio properly.

I tried to create a virtual sink and to output the audio from vlc to this sink then run your code but all I could get was about 1 sec of playtime at the beginning then it is silence. Can you provide me further assistance how to properly configure the pulseaudio?

What I plan to do is to have to raspberries (1 sender and 1 receiver). The communication should be unicast because I don't want to receive anything from receiver. I tried to follow your instruction and I suppose that the problem is how I configure the pulseaudio.

Thanks

@blaa
Copy link
Owner

blaa commented Jan 28, 2021 via email

@tgsavs69
Copy link
Author

tgsavs69 commented Jan 28, 2021

Hello,
First of all, thank you for the very fast reply! Much appreciated!

I tried this line: load-module module-simple-protocol-unix rate=44100 format=s16le channels=2 playback=true sink=0 socket=/tmp/music.sink but it seems that it blocks somehow the wavesync because when i run wavesync --tx /tmp/sink i don't receive any output from it.
If I change from playback to record it seems to work again.

I attached the content of the default.pa below.
default.pa.txt

Thanks!

@blaa
Copy link
Owner

blaa commented Jan 28, 2021 via email

@tgsavs69
Copy link
Author

tgsavs69 commented Jan 28, 2021

Hello,

I was able to somehow run both wavesync tx and rx. The sound quality is good but unfortunately they are not in sync. I tried to use --sink-latency but for every value i use, the receiver drops all packages. I tried --sink-latency from 1 to 1000 but same result. The ntptime estimated error for both Raspberries is below 2200 us. I have attached the output:
output.txt

Also, do you have any idea how to fix the warning/error from the beginning of the file?

Thanks!

@blaa
Copy link
Owner

blaa commented Jan 28, 2021 via email

@tgsavs69
Copy link
Author

Hello,

Yes, I installed wavesync from the pip.

The delay is between 500ms to 1s I can't remember properly but it is really obvious. The NTP seems to be all good now (estimated error is below 2100 us for both Raspberries). The output for both devices is the built in sound card.

Everytime i started a new .mp3, it was already desync from the beginning. The connection between both devices is via cable (with avg ping time about 0.2ms). I will try tomorrow the version from the github, maybe the syncronization is better.

Thank you for your help and great work tho! Keep it up mate!

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