Skip to content

Commit b94200e

Browse files
committed
Try to split out audio buffer
1 parent bcbcc88 commit b94200e

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/http2-utility.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export default class Http2Utility {
3030
Content-Disposition: form-data; name="audio"
3131
Content-Type: application/octet-stream
3232
33-
${buffer}
3433
`;
3534

3635
return output;

src/speech-recognizer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export default class SpeechRecognizer {
5757

5858
const audio = this.http2Utility.createBinaryAudioAttachment(chunk);
5959
req.write(audio);
60+
req.write(chunk);
6061
});
6162

6263
req.setEncoding("utf8");

0 commit comments

Comments
 (0)