File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { ReadStream , WriteStream } from "fs" ;
22import * as http2 from "http2" ;
33
4- import Connection from "./connection" ;
54import { BASE_URLS } from "./constants/base-urls" ;
65import { API_VERSION } from "./constants/general" ;
6+ import Directives from "./directives" ;
77import SpeechRecognizer from "./speech-recognizer" ;
88import System from "./system" ;
99
@@ -18,13 +18,13 @@ export class AVSApi {
1818 const context : AVS . Context = [ ] ;
1919
2020 const speechRecognizer = new SpeechRecognizer ( client ) ;
21- const connection = new Connection ( client ) ;
21+ const directives = new Directives ( client ) ;
2222 const system = new System ( client ) ;
2323
2424 const accessToken =
2525 "Atza|IwEBIFymtJ3Bb2MIW4SvBaYj7Gb9jSdrMoo1iFvfun3Ttp-oXxDXFy815mm1b2lksZZU1b3b2RWVUBslKbs9ef6R0UoEF21RcK3I0uMcmQ8yXEuXuy_wR_Z6wyHvAqcxFxPxdVzmqw145-eHPNu2gbk4nQ731JXrPYwdHs38IsLgnaeHCUHTj-DDF6Tq1AnTW7aoyNUfg0hwNIbtDKV--xQ0M5LYgMAe4cfdIz43n5dMbp1hMhe4ZPrwFeCttnkfheW04-sNmhAGjA5dgT11XSW8kAfsZ7RvMLt28DRJKcVAYxhvjjzT3h9yW-g2MOhXBrYyxezKHH1FpPmHQIBBTG_iCrPSwmOUEWfFrz7iEfjWH6rcdBVBpEyXghTaZkMI2d3ZdugQJ48-ES9QNk30QUn41q3IqOimCN5sKJ83KsRSY4aGaSqn8csuVXeZHROqvYNavHjA4vbjmtSbydrTYMarNHmBznULzb-CQGsSWIL4RYxA3mCRvDQjoQzGigAnS5rzHg0" ;
2626
27- connection . connect ( accessToken ) ;
27+ directives . connect ( accessToken ) ;
2828 system . synchronizeState ( accessToken , context ) ;
2929 speechRecognizer . recognize ( accessToken , context , this . readStream ) ;
3030 }
You can’t perform that action at this time.
0 commit comments