Skip to content

Commit 06e5de0

Browse files
committed
Add binary
1 parent 814c175 commit 06e5de0

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

fern/pages/02-speech-to-text/universal-streaming/universal-streaming.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -952,8 +952,8 @@ You send:
952952
<AccordionGroup>
953953
<Accordion title="Audio data">
954954

955-
```json
956-
"UklGRtjIAABXQVZFZ"
955+
```
956+
"\x52\x49\x46\x46\xd8\xc8\x00\x00\x57\x41\x56\x45\x46"
957957
```
958958

959959
</Accordion>

usm-streaming.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,14 +230,13 @@ components:
230230
AudioChunk:
231231
name: AudioChunk
232232
title: Audio Data Chunk
233-
summary: Client sends audio data as a base64-encoded string within a JSON object.
234-
type: string
235-
format: base64
233+
summary: Client sends audio data as raw binary.
234+
contentType: application/octet-stream
236235
payload:
237236
type: string
238-
format: base64
237+
format: binary
239238
examples:
240-
- payload: "UklGRiQAAABXQVZFZm10IBAAAAABAAEAgD4AAAB9AAACABAAZGF0YQAAAAA="
239+
- payload: '\x10\x00\x20\x00\x30\x00\x40\x00\x30\x00\x20\x00\x10\x00\x00\x00\xf0\xff\xe0\xff\xd0\xff\xc0\xff'
241240

242241
SessionBegins:
243242
name: SessionBegins

0 commit comments

Comments
 (0)