File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import EventEmitter from "events";
22import querystring from "querystring" ;
33import WebSocket from "ws" ;
44import { ConnectionState , LiveTranscriptionEvents } from "../enums" ;
5- import { LiveTranscriptionOptions } from "../types" ;
5+ import { LiveTranscriptionOptions , ToggleConfigOptions } from "../types" ;
66import { userAgent } from "../userAgent" ;
77
88export class LiveTranscription extends EventEmitter {
@@ -48,13 +48,11 @@ export class LiveTranscription extends EventEmitter {
4848 } ;
4949 }
5050
51- public toggleNumerals ( toggle : boolean ) : void {
51+ public configure ( config : ToggleConfigOptions ) : void {
5252 this . _socket . send (
5353 JSON . stringify ( {
5454 type : "Configure" ,
55- processors : {
56- numerals : toggle ,
57- } ,
55+ processors : config ,
5856 } )
5957 ) ;
6058 }
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ export * from "./scopeList";
2929export * from "./search" ;
3030export * from "./sentence" ;
3131export * from "./summary" ;
32+ export * from "./toggleConfigOptions" ;
3233export * from "./topic" ;
3334export * from "./topicGroup" ;
3435export * from "./transcriptionSource" ;
Original file line number Diff line number Diff line change 1+ export type ToggleConfigOptions = {
2+ numerals : boolean ;
3+ } ;
You can’t perform that action at this time.
0 commit comments