-
Notifications
You must be signed in to change notification settings - Fork 92
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
Two-way audio working? #762
Comments
If you enable sound in the web gui, the rtsp will contain an audio channel. About the speaker, at the moment you can use it in two ways:
Check the wiki for the syntax: These features are integrated in the ha custom component and you can use them from ha as a service. |
Another use, there is a hidden web page: |
If we can upload a wav, wouldnt it be possible to insert a video stream on that page and a microphone button, that then saves in wav and immediately pushes it to the camera? Probably not so simple to include this in a go2rtc stream(i see that go2rtc is not used?), but it would already be a improvement :)
Sent from Nine
…________________________________
Van: roleo ***@***.***>
verzonden: woensdag 29 november 2023 16:49
Aan: roleoroleo/yi-hack-Allwinner-v2
Cc: borgqueenx; Author
Onderwerp: Re: [roleoroleo/yi-hack-Allwinner-v2] Two-way audio working? (Issue #762)
Another use, there is a hidden web page:
http://IP-CAM/?page=speak
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Dahua cameras support multipart POST for playing audio files I can try to support something like this. Multipart uses for sending multiple audio chunks to single POST connection. |
Does it support multiple multipart files in same connection? One by one with little delay between. |
No, at the moment. |
Maybe I could implement it server side (within the cam). |
I don't know of any such examples. |
The idea is so cool. I’m not good at JavaScript, but I tried to get an example from Codex:
Second example:
|
@roleoroleo - is it possible to stream audio through the speaker of the camera? I have two h60ga cameras. I'm trying to achieve this Smart Baby Monitor. In short what I want to achieve it to capture the sound through ffmpeg_noise sensor in home assistant from the RTSP audio stream of the first camera, to upload it to Icecast 2 server and then to stream it through the speaker of the second camera when home assistant detects baby cry in the RTSP audio stream. |
You can send an audio file to the cam but a stream is not supported. |
Yes, I have already managed to capture the audio through the audio stream of the camera. Unfortunately the output creates audio file, which is continually feeded from the audio stream so there is no way to have a completed file which can be sent to the camera. |
Take a look to this repo: |
Wow, this is great! Thank you! I have tried both streaming ways (streamer/received and streaming using ffmpeg) and both of them are working. While using streamer/received I cannot control the volume and it is too low, but when I stream using ffmpeg I can control it so I got really good result. I need to find out a way to start and stop the streamer and the receiver from Home Assistant. Will it be hard to add such functionality? |
You could create a ha script to run a remote command through ssh. |
Yes, I will go in this direction. Thanks for the suggestion and for the rtp streamer which you have created 👍 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hey there yi hacks! I bought 5 dome u pro cameras tbis black friday and wondering if we could use two-way audio on the device. I found two discussions regarding this that say we can use a text to speech service and upload a wav file, but nothing about using a microphone to talk live while watching the (rtsp?) Stream.
Is this now possible or has it been found unfortunately not possible?
Thanks!
The text was updated successfully, but these errors were encountered: