Skip to content

Commit

Permalink
feat: implements finalize on the liveclient
Browse files Browse the repository at this point in the history
  • Loading branch information
dvonthenen committed Jul 12, 2024
1 parent 726f676 commit cee0704
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/packages/ListenLiveClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,17 @@ export class ListenLiveClient extends AbstractLiveClient {
);
}

/**
* Sends a "Finalize" message to flush any transcription sitting in the server's buffer.
*/
public finalize(): void {
this.send(
JSON.stringify({
type: "Finalize",
})
);
}

/**
* @deprecated Since version 3.4. Will be removed in version 4.0. Use `requestClose` instead.
*/
Expand Down

0 comments on commit cee0704

Please sign in to comment.