mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Change audio sample rate for apple watch homekit camera (#37637)
* Update type_cameras.py * Apply suggestions from code review Support both 24kHz and 16kHz sample rate Co-authored-by: J. Nick Koston <nick@koston.org> * Adjust formatting * Reformat Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
bcd604eec2
commit
511da9557b
@ -164,7 +164,12 @@ class Camera(HomeAccessory, PyhapCamera):
|
|||||||
},
|
},
|
||||||
"resolutions": resolutions,
|
"resolutions": resolutions,
|
||||||
}
|
}
|
||||||
audio_options = {"codecs": [{"type": "OPUS", "samplerate": 24}]}
|
audio_options = {
|
||||||
|
"codecs": [
|
||||||
|
{"type": "OPUS", "samplerate": 24},
|
||||||
|
{"type": "OPUS", "samplerate": 16},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
stream_address = config.get(CONF_STREAM_ADDRESS, get_local_ip())
|
stream_address = config.get(CONF_STREAM_ADDRESS, get_local_ip())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user