-
Notifications
You must be signed in to change notification settings - Fork 6
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
Support for non-Opus codecs #3
Comments
One worry with other codecs is that they use an 8Khz sample rate. Both the HA cloud and local speech to text options were trained on 16Khz audio, so upsampling may cause significant loss in recognition performance. Still, it would be worth testing both PCMA and PCMU to see if they are usable. |
I've been struggling to make the voice functionality work with Asterisk (with both the open source and the Digium binary-only codec, both a pain for different reasons), with various warnings around lost frames on the Asterisk side from the opus codec module. While it may be something entirely in my configuration (still very early in debugging it), it would help to be able to try another codec -and one that's more battle-tested with Asterisk- for troubleshooting reasons. Isn't G.722 wideband/16kHz by design? And given it's uncompressed, wouldn't that be better than Opus, in terms of recognition? I think G.729.1 (note the .1) is also supposed to be wideband, although I have no experience with that. |
The Grandstream HT80x doesn't seem to supported wideband for G.722:
I would have much preferred the uncompressed audio over dealing with OPUS! |
I don't think G.722 8kHz is a thing. I believe what you're seeing is this, from the Wikipedia article on G.722:
|
I guess you've probably moved on from VoIP & Grandstreams in favor of M5Stack/ESPHome/etc., but I was curious if you think this is something that is on the horizon? The changes don't look super complicated, but given I don't have a baseline with a setup that works, I fear it's hard for me to submit a PR and test this. Is there any other way I can help? Thanks again! |
I have been juggling a few workaround ideas to the codec issue for some time.
Are there any plans to implement a robust solution without the above? |
@mechanarchy @paravoid |
Hey synesthesiam & Hass team,
I am keen to try the
voip
integration in 2023.5 but my desk phone does not support opus, only older codecs:Is there any chance you could add support for one of these in the future?
Perhaps G711 as it seems like the lowest-common-denominator for codecs. It is also specified as part of the required codec set for WebRTC compatibility, so I would hope there are existing libraries that can be leveraged.
The text was updated successfully, but these errors were encountered: