Skip to content

Pass negotiated audio configuration to talkback receiver - #585

Merged
ikalchev merged 2 commits into
ikalchev:devfrom
Naka-Masa19:improve-talkback-receiver-start
Dec 1, 2026
Merged

ikalchev merged 2 commits into
ikalchev:devfrom
Naka-Masa19:improve-talkback-receiver-start

Conversation

@Naka-Masa19

@Naka-Masa19 Naka-Masa19 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #564.

This PR starts the talkback receiver only after the stream has started successfully, passing the negotiated audio codec to TalkbackReceiver.start().

It also ensures that the receiver socket is closed safely even if the receiver thread was never started.

Question

Should more negotiated audio parameters (e.g. a_channel, a_sample_rate, and a_payload_type) be passed to the receiver?

Can the outgoing audio configuration be reused for the incoming stream, or are there any differences?

Use of AI

AI-assisted (design discussion / PR text). Code authored and verified by me.

@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.45%. Comparing base (9b4f079) to head (fb1ec56).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #585   +/-   ##
=======================================
  Coverage   92.45%   92.45%           
=======================================
  Files          56       56           
  Lines       11347    11349    +2     
  Branches     1457     1459    +2     
=======================================
+ Hits        10491    10493    +2     
  Misses        570      570           
  Partials      286      286           
Files with missing lines Coverage Δ
pyhap/camera.py 92.75% <100.00%> (+<0.01%) ⬆️
pyhap/camera_talkback.py 80.76% <100.00%> (+0.18%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ikalchev
ikalchev merged commit 778a2ab into ikalchev:dev Dec 1, 2026
8 checks passed
@Naka-Masa19
Naka-Masa19 deleted the improve-talkback-receiver-start branch December 1, 2026 22:34
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 participants