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>pull/37686/head
parent
bcd604eec2
commit
511da9557b
|
@ -164,7 +164,12 @@ class Camera(HomeAccessory, PyhapCamera):
|
|||
},
|
||||
"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())
|
||||
|
||||
|
|
Loading…
Reference in New Issue