-
Notifications
You must be signed in to change notification settings - Fork 68
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
playing tts/audio on VTO #177
Comments
you can change the orginal voice with your own mp3 but there is a limit with 20kb only :/ |
I may have found the api command for the Amcrest AD110 doorbell, in theory it would be the same for the Dahua ones. Doing some tests and will report back. UPDATE: Ok, so apparently "we" have already known about the endpoint for sometime. From what I have found is it is really sketch for files, it needs to be rather short and lower quality, else the device gets overwhelmed. I plan to work on some premade tts recordings and see where it leads. |
My VTO
....and hang |
But it actually plays nicely on my VTO!! Just not response ending session |
With VTO2211G I do not need --limit-rate nor auth ?!? Can dahua be visible as HA MediaPlayer class device? or maybe it is wrong idea ? |
Yeah I had the hang as well. I've never messed with any form of media streaming in python so I don't know how to handle that with the requests module that we are using here. In fact most of my http get/post experiencesin python were simple endpoints that auto closed. This endpoint appears to be the one the app uses to open the stream, but the docs don't show how it ends. I'll have to dive into the requests module and see how it closes persistent connections. |
Maybe this ?
https://docs.python-requests.org/en/latest/user/advanced/#timeouts 3.05 - connection timeout |
😂 😅 |
Yes it is
|
Got it, have some free time coming up, I'll look into it. |
I failed trying to play an ACC format on my VTO. pcm_alaw is a way to go. |
I've been playing around with this. The issue I am having, though, is after sending a few streams of audio (which work very well btw with pcm_alaw) it then refuses any more. Its almost like it needs a 'end conversation' to be sent to close the existing connections. I am at a loss tbh. What I have noticed though. It sends perfectly the first time and then fails the second. I believe the 'mic' needs to be turned off somehow. In the amcrest app, you turn the mic on, speak, then turn it off. IF I test the first time, then go into the app and toggle the mic it works again. I need to figure out how to 'turn off the mic' after sending. Any ideas? EDIT: |
Would love to see this as a media player! |
As media player would be a grate feature it probably take some time to implement.. in the meantime did someone figure out how to automate/script this in HA ? |
Well. For any camera that supports onvif profile T, you can now 2-way with the cameras with go2rtc. I'm using it with a ad410 perfectly. |
Yeah, I am very trilled running go2rtc in 2-way mode ..just struggling with ssl via traefik under "network_mode: host" mode. Meanwhile I wrote automation for playing TTS over VTO ..this is a main part
|
For what it's worth - the techniques described here also work on the Amcrest AD110/AD410 doorbells to send custom sounds, including sirens. |
any news? i'm very interested in this
can you explain the procedure better for a newbie like me? thank you @luzik |
So, any progress with that issue? |
Would be nice if you explain that code for us |
Launches bash and sets 2 local variables
The original command has 2 spaces in the last commands Here is a reformatted command with the whitespace removed:
|
It would be awesome, to be able to send tts or audio via VTO speaker.
My personal use case is to connect face recognition with voice messages. Something like "Hello MyName"
If there is no direct command for that, my VTO have a place where I can store mp3 audio for various events. Maybe rroller/dahua could generate mp3, upload it to VTO, and trigger an action for that ?
The text was updated successfully, but these errors were encountered: