Open jonathonchavez opened 1 year ago
Could it be a firewall or AV blocking network access to/from swyh-rs? Can you attach a debug log here?
Sure thing! I already checked both firewall rules and AV settings - both allowing 5901 through. Using Bitdefender if that helps. Starting to think i may have to look at my router rules?
Configuration { server_port: Some(5901), auto_resume: false, sound_source: "Speakers (Realtek(R) Audio)", sound_source_index: Some(0), log_level: Debug, ssdp_interval_mins: 10.0, auto_reconnect: false, disable_chunked: true, use_wave_format: true, bits_per_sample: Some(24), streaming_format: Some(Wav), monitor_rms: false, capture_timeout: Some(2000), inject_silence: Some(false), last_renderer: "Sonos One Sonos Dos - Sonos One Media Renderer", last_network: "192.168.3.248", config_dir: "C:\\Users\\Jon\\.swyh-rs", config_id: Some("") }
Setup audio sources
Now running at ABOVE_NORMAL_PRIORITY_CLASS
Capturing audio from: Speakers (Realtek(R) Audio)
Default audio SupportedStreamConfig { channels: 2, sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 }
Discover networks
Starting SSDP discovery
The streaming server is listening on http://192.168.3.248:5901/stream/swyh.wav
Streaming sample rate: 48000, bits per sample: 24, format: WAV
The wave_reader is now receiving samples
The debug log is located in your home directory in the folder .swyh-rs, and you have to set the log level to debug.
Port 5901 is used for the streaming, but the ports for upnp/dlna also have to be enabled for swyh-rs.
Normally when starting swyh-rs for the first time Windows Defender will fix this for you automatically, but I have no experience with Bitdefender.
Temporarily disabling firewall and AV will show you if this indeed the cause problem.
Log here:
18:53:21 [INFO] swyh-rs V 1.6.1 - Logging started.
18:53:21 [INFO] Config: Configuration { server_port: Some(5901), auto_resume: false, sound_source: "Speakers (Realtek(R) Audio)", sound_source_index: Some(0), log_level: Debug, ssdp_interval_mins: 10.0, auto_reconnect: false, disable_chunked: true, use_wave_format: true, bits_per_sample: Some(24), streaming_format: Some(Wav), monitor_rms: true, capture_timeout: Some(2000), inject_silence: Some(false), last_renderer: "Sonos One Sonos Dos - Sonos One Media Renderer", last_network: "192.168.3.248", config_dir: "C:\\Users\\Jon\\.swyh-rs", config_id: Some("") }
18:53:21 [DEBUG] (1) swyh_rs::utils::audiodevices: Supported hosts:
[Wasapi]
18:53:21 [DEBUG] (1) swyh_rs::utils::audiodevices: Available hosts:
[Wasapi]
18:53:21 [DEBUG] (1) swyh_rs::utils::audiodevices: WASAPI
18:53:21 [DEBUG] (1) swyh_rs::utils::audiodevices: Default Output Device:
Some("Speakers (Realtek(R) Audio)")
18:53:21 [DEBUG] (1) swyh_rs::utils::audiodevices: Devices:
18:53:21 [DEBUG] (1) swyh_rs::utils::audiodevices: 1. "Speakers (Realtek(R) Audio)"
18:53:21 [DEBUG] (1) swyh_rs::utils::audiodevices: All supported output stream configs:
18:53:21 [DEBUG] (1) swyh_rs::utils::audiodevices: 1.1. SupportedStreamConfigRange { channels: 2, min_sample_rate: SampleRate(48000), max_sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 }
18:53:21 [DEBUG] (1) swyh_rs::utils::audiodevices: Default output stream config:
SupportedStreamConfig { channels: 2, sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 }
18:53:21 [DEBUG] (1) swyh_rs::utils::audiodevices: 2. "CABLE Input (VB-Audio Virtual Cable)"
18:53:21 [DEBUG] (1) swyh_rs::utils::audiodevices: All supported output stream configs:
18:53:21 [DEBUG] (1) swyh_rs::utils::audiodevices: 2.1. SupportedStreamConfigRange { channels: 2, min_sample_rate: SampleRate(48000), max_sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 }
18:53:21 [DEBUG] (1) swyh_rs::utils::audiodevices: Default output stream config:
SupportedStreamConfig { channels: 2, sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 }
18:53:21 [DEBUG] (1) swyh_rs::utils::audiodevices: 3. "CABLE Output (VB-Audio Virtual Cable)"
18:53:21 [DEBUG] (1) swyh_rs::utils::audiodevices: 4. "Microphone (Realtek(R) Audio)"
18:53:21 [INFO] Selected audio source: Speakers (Realtek(R) Audio)[#0]
18:53:21 [INFO] tb_log: Setup audio sources
18:53:21 [INFO] tb_log: Now running at ABOVE_NORMAL_PRIORITY_CLASS
18:53:21 [DEBUG] (1) swyh_rs: Try capturing system audio
18:53:21 [INFO] tb_log: Capturing audio from: Speakers (Realtek(R) Audio)
18:53:21 [INFO] tb_log: Default audio SupportedStreamConfig { channels: 2, sample_rate: SampleRate(48000), buffer_size: Range { min: 0, max: 4294967295 }, sample_format: F32 }
18:53:21 [INFO] tb_log: Discover networks
18:53:21 [INFO] tb_log: Starting SSDP discovery
18:53:21 [DEBUG] (3) swyh_rs::openhome::rendercontrol: SSDP discovery started
18:53:21 [INFO] tb_log: The streaming server is listening on http://192.168.3.248:5901/stream/swyh.wav
18:53:21 [INFO] tb_log: Streaming sample rate: 48000, bits per sample: 24, format: WAV
18:53:31 [INFO] tb_log: The wave_reader is now receiving samples
Also disabled Firewall and AV - no changes
The ssdp discovery returns no results so udp network traffic is blocked somewhere.
I will install on a different computer tonight and try again
A few weeks ago I installed the program and followed the directions for Sonos devices. All 3 showed and I was able to connect to each and all 3 at the same time (with very low latency - thanks!) Since then, I have not seen them show up on the program anymore. My network has not changed since then. Troubleshooting:
Not sure what can be going on - as all Sonos are detected via airplay on multiple devices. Happy to share more info if requested. Thanks!