go2rtc
go2rtc copied to clipboard
Stream to Tapo camera
Hi,
I've set up Stream Assist on my Tapo camera. It is supported by go2rtc and WebRTC for streaming the reply and the STT start media. Everything is working during 1-2 min. It reacts to the wake word and performs tasks using assist. After a while a click can be heard from the camera. After that, streaming to the camera (media player entity) stops working. It still reacts to the wake word, but the STT start becomes somewhat undetermined. By chance, it can sometimes understand the voice command. The situation is corrected if I restart the go2rtc, or reload the Stream Assist configuration. Please give some advice, why the two-way-audo streaming to the camera stops, and how to correct.
- You need to check active connections for go2rtc (related to this camera)
- You need to check all possible connection for your camera from any software
- If video recording or detection is enabled on the camera, it is better to turn them off
Thanks for hints! At the time, when the camera cannot play back STT message and responses:
{
"producers": [
{
"id": 2148197600,
"format_name": "tapo",
"protocol": "http",
"remote_addr": "172.16.1.100:8800",
"medias": [
"video, recvonly, H264",
"audio, recvonly, PCMA/8000",
"audio, sendonly, PCMA/8000"
],
"receivers": [
{
"id": 1113,
"codec": {
"codec_name": "pcm_alaw",
"codec_type": "audio",
"sample_rate": 8000
},
"childs": [
1114
],
"bytes": 8116480,
"packets": 16233
}
],
"senders": [
{
"id": 1119,
"codec": {
"channels": 1,
"codec_name": "pcm_alaw",
"codec_type": "audio",
"sample_rate": 8000
},
"parent": 1157,
"bytes": 294720,
"packets": 921
}
],
"bytes_recv": 17485040
}
],
"consumers": [
{
"id": 1112,
"format_name": "rtsp",
"protocol": "rtsp+tcp",
"remote_addr": "127.0.0.1:60710",
"sdp": "v=0\r\no=- 1 1 IN IP4 0.0.0.0\r\ns=go2rtc/1.9.7\r\nc=IN IP4 0.0.0.0\r\nt=0 0\r\nm=audio 0 RTP/AVP 96\r\na=rtpmap:96 PCMA/8000\r\na=control:trackID=0\r\n",
"user_agent": "Lavf60.3.100",
"medias": [
"audio, sendonly, ANY"
],
"senders": [
{
"id": 1114,
"codec": {
"codec_name": "pcm_alaw",
"codec_type": "audio",
"sample_rate": 8000
},
"parent": 1113,
"bytes": 8116480,
"packets": 16233
}
],
"bytes_send": 8376208
}
]
}
Also, if I try to play back a short mp3 sound on the webrtc media player defined for the camera, I get this lof entry in the go2rtc: [rtsp] error=streams: dial tcp 172.16.1.100:8800: connect: no route to host stream=TapoCamera
"no route to host" it's an operating system error. You have something wrong with your network settings. Given the very rare IP address - you have a very complex LAN configuration.
Hi AlexxIT,
Finally I gave up with the Stream Assist... I wasn't able to stabilize it. The streaming to the camera through WebRTC media player always stopped working, so there was no feedback about detecting the wake word. In the Stream Assist I tried different stream configurations: direct RTSP link to the camera, link to the go2rtc stream and also camera entity, but without success. Even more, the Tapo integration also became somewhat buggy if go2rtc stream, WebRTC media player and Stream Assist were configured. Important to know, that I use the camera with HA through the Tapo integration and my Synologi Surveillance station also consumes RTSP stream of it.
Regards, Bithajcsar