georgezhao2010 / apple_airplayer

Make your AirPlay devices as TTS speakers
MIT License
130 stars 17 forks source link

Exception raised in async_stream_file, RTSP/1.0 method ANNOUNCE failed with code 400: Bad Request #14

Open tech-and-tinker opened 2 years ago

tech-and-tinker commented 2 years ago

First of all thanks for your work. This is exactly the missing part to replace the echo with my homepod mini.

Unfortunately i get the following error when trying to send a tts notification to the media_player.

I'm on HA 2021.9.6, pyatv 0.82. I updated miniaudio as recommended.

Logger: custom_components.apple_airplayer.device_manager Source: custom_components/apple_airplayer/device_manager.py:127 Integration: Apple AirPlayer (documentation, issues) First occurred: 16:46:15 (5 occurrences) Last logged: 19:51:58

Exception raised in async_stream_file, RTSP/1.0 method ANNOUNCE failed with code 400: Bad Request

Any idea what i'm doin wrong?

yuriizubkov commented 2 years ago

Same error on fresh installation.

georgezhao2010 commented 2 years ago

In Home->Home Settings->Allow Speaker & TV Access, DO NOT set to Only People Sharing This Home, and DO NOT enable Require Password.

First of all thanks for your work. This is exactly the missing part to replace the echo with my homepod mini.

Unfortunately i get the following error when trying to send a tts notification to the media_player.

I'm on HA 2021.9.6, pyatv 0.82. I updated miniaudio as recommended.

Logger: custom_components.apple_airplayer.device_manager Source: custom_components/apple_airplayer/device_manager.py:127 Integration: Apple AirPlayer (documentation, issues) First occurred: 16:46:15 (5 occurrences) Last logged: 19:51:58

Exception raised in async_stream_file, RTSP/1.0 method ANNOUNCE failed with code 400: Bad Request

Any idea what i'm doin wrong?

In Home->Home Settings->Allow Speaker & TV Access, DO NOT set to Only People Sharing This Home, and DO NOT enable Require Password.

tech-and-tinker commented 2 years ago

In Home->Home Settings->Allow Speaker & TV Access, DO NOT set to Only People Sharing This Home, and DO NOT enable Require Password.

I tried "all" and "all in the same network" (translating from german, english may differ).

Restarted HomePods, waited a bit, no change.

georgezhao2010 commented 2 years ago

In Home->Home Settings->Allow Speaker & TV Access, DO NOT set to Only People Sharing This Home, and DO NOT enable Require Password.

I tried "all" and "all in the same network" (translating from german, english may differ).

Restarted HomePods, waited a bit, no change.

Restart Home Assistant and try again?

vin-w commented 2 years ago

@georgezhao2010 Thanks for the tips on "In Home->Home Settings->Allow Speaker & TV Access, DO NOT set to Only People Sharing This Home, and DO NOT enable Require Password."

I was accidentally changed the setting and it wasn't work before. It would be good if you put this instruction in the Readme.

And sometimes another reason for not working is if the device is being setup by auto detect.

                "data": {
                    "device": "xxxxxx",
                    "cache_dir": "/config/tts"
                },

However, it always 100% works for IP. Could it be possible when we add the device, we can always choose auto detect or by typing IP?

                "data": {
                    "address": "10.1.1.xxx",
                    "cache_dir": "/config/tts"
                },