AlexxIT / StreamAssist

Home Assistant custom component that allows you to turn almost any camera and almost any speaker into a local voice assistant
MIT License
205 stars 18 forks source link

StreamAssist Making Multiple Connections #50

Open janstadt opened 3 hours ago

janstadt commented 3 hours ago

I have an android device connected to StreamAssist using the IP WebCam app which is running in Audio Only mode. StreamAssist the only thing connected to it, but somehow StreamAssist keeps making multiple connections (20 is what i usually see) to IP Webcam resulting in the application restarting and everything going haywire. I dont know for certain if its StreamAssist not gracefully closing the previous connections, or IP Webcam doing something weird, but i think since StreamAssist is making the connection i figure i'd start here first. Has anyone else seen this and if so, @AlexxIT would you have any idea why this is happening or if there is something that can be modified in StreamAssist?

janstadt commented 3 hours ago

I do have an automation that keeps the microphone on and im curious if when thats ran, it makes a new connection to ipwebcam even though the previous connection is still established or something? Im going to modify my automation to be a bit smarter and will report back.

tbrasser commented 2 hours ago

Same here, but I thought it was because of (combination of) IP Webcam and Fire OS (Fire HD10+)

janstadt commented 2 hours ago

Coincidentally i am also seeing this on the hd10+. lol. I am testing out tinycam pro on that device currently. StreamAssist is working with it so far, but there is a bit more config that i needed to do. If you want to test that apk out, you can get the audio stream from: http://[ip]:8083/axis-cgi/audio/receive.wav?user=[username]&pwd=[pwd] You are also required to configure the webserver but thats pretty straight forward. More info about the api: https://github.com/alexeyvasilyev/tinycam-api