Skip to content

Introduce Dahua CGI source for 2-way audio #1795

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

felipecrs
Copy link
Contributor

@felipecrs felipecrs commented Jul 4, 2025

I have no idea on what I am doing.

I just spent a few hours playing around with Claude Sonnet 4 and I came up with this.

It's probably ugly and inefficient, but it works: audio is played back in the camera.

A bit robotic though.

I hope to improve this over time.

Note I am not asking for reviews or anything. For now, I'm just saving my work.

Closes #52.

@AlexxIT AlexxIT self-assigned this Jul 7, 2025
@felipecrs
Copy link
Contributor Author

felipecrs commented Jul 11, 2025

I made some code cleanup, but I was still not able to fix the robotic audio.

This is how this PR is currently playing the following sample:

(remove .txt extension after downloading)

ringback.wav.txt

image

dahua playback.m4a.txt

@AlexxIT, if you have any idea on how to improve that, I'd appreciate.

@felipecrs
Copy link
Contributor Author

Here is a better manual I found:

HTTP_API_3.26.pdf

@felipecrs
Copy link
Contributor Author

felipecrs commented Jul 11, 2025

@AlexxIT if you have some Dahua camera and want to give this PR a try, please go ahead.

It's faster and easier to just make changes yourself rather than reviewing this PR.

I will not mind if you do that. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2-way audio with Dahua CGI HTTP interface
2 participants