refactor(stage-web,stage-pages,stage-ui): better structure for asr & vad

This commit is contained in:
Neko Ayaka
2026-08-09 18:22:29 +08:00
parent 98fa1f0855
commit 66d7ef207e
28 changed files with 913 additions and 428 deletions
@@ -169,7 +169,7 @@ async function writeAudioToUpstream(audioStream: ReadableStream<Uint8Array>, ws:
* - `audioStream` contains 16 kHz PCM chunks by default, matching the Hearing worklet output.
*
* Returns:
* - A `text/event-stream` response consumable by the existing `streamAliyunTranscription` executor.
* - A `text/event-stream` response consumable by the shared `streamTranscription` adapter.
*/
export function createAliyunNlsStreamResponse(options: CreateAliyunNlsStreamResponseOptions): Response {
const body = new ReadableStream<Uint8Array>({