Pause playback while transmitting and declare microphone use.
macOS refuses capture without a usage string, and queued remote audio was still handed to the speaker after push-to-talk began. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -26,6 +26,7 @@ import (
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
// FrameSamples is the 20 ms frame at 16 kHz, which is what the reflector carries.
|
||||
const FrameSamples = 320
|
||||
|
||||
// Encoder produces one raw Opus packet per 20 ms frame.
|
||||
|
||||
Reference in New Issue
Block a user