@@ -39,13 +39,13 @@ const ttsEngines = {
3939 google : new ( require ( './tts/google' ) ) ( ) ,
4040 ibm : new ( require ( './tts/ibm' ) ) ( ) ,
4141 azure : new ( require ( './tts/azure' ) ) ( ) ,
42- polly : new ( require ( './tts/polly' ) ) ( ) ,
43- marytts : new ( require ( './tts/marytts' ) ) ( ) ,
44- picotts : new ( require ( './tts/picotts' ) ) ( )
42+ polly : new ( require ( './tts/polly' ) ) ( )
43+ // marytts: new (require('./tts/marytts'))(),
44+ // picotts: new (require('./tts/picotts'))()
4545}
4646const sttEngines = {
4747 google : new ( require ( './stt/google' ) ) ( ) ,
48- kaldi : new ( require ( './stt/kaldi' ) ) ( ) ,
48+ // kaldi: new (require('./stt/kaldi'))(),
4949 ibm : new ( require ( './stt/ibm' ) ) ( ) ,
5050 azure : new ( require ( './stt/azure' ) ) ( ) ,
5151 awstranscribe : new ( require ( './stt/awstranscribe' ) ) ( )
@@ -144,7 +144,7 @@ const router = express.Router()
144144 * required: false
145145 * schema:
146146 * type: string
147- * enum: [kaldi, google, ibm, azure, awstranscribe]
147+ * enum: [google, ibm, azure, awstranscribe]
148148 * responses:
149149 * 200:
150150 * description: List of supported STT languages
@@ -196,7 +196,7 @@ const router = express.Router()
196196 * required: false
197197 * schema:
198198 * type: string
199- * enum: [kaldi, google, ibm, azure, awstranscribe]
199+ * enum: [google, ibm, azure, awstranscribe]
200200 * - name: cache
201201 * description: Use result cache (default Y)
202202 * in: query
@@ -299,7 +299,7 @@ router.post('/api/stt/:language', async (req, res, next) => {
299299 * required: false
300300 * schema:
301301 * type: string
302- * enum: [google, ibm, azure, polly, marytts, picotts ]
302+ * enum: [google, ibm, azure, polly]
303303 * responses:
304304 * 200:
305305 * description: List of supported voices
@@ -340,7 +340,7 @@ router.post('/api/stt/:language', async (req, res, next) => {
340340 * required: false
341341 * schema:
342342 * type: string
343- * enum: [google, ibm, azure, polly, marytts, picotts ]
343+ * enum: [google, ibm, azure, polly]
344344 * responses:
345345 * 200:
346346 * description: List of supported TTS languages
@@ -352,6 +352,9 @@ router.post('/api/stt/:language', async (req, res, next) => {
352352; [ router . get . bind ( router ) , router . post . bind ( router ) ] . forEach ( m => m ( '/api/ttslanguages' , async ( req , res , next ) => {
353353 try {
354354 const tts = ttsEngines [ ( req . query . tts && sanitize ( req . query . tts ) ) || process . env . BOTIUM_SPEECH_PROVIDER_TTS ]
355+ if ( _ . isNil ( tts ) ) {
356+ res . json ( [ ] )
357+ }
355358 res . json ( await tts . languages ( req ) )
356359 } catch ( err ) {
357360 return next ( err )
@@ -392,7 +395,7 @@ router.post('/api/stt/:language', async (req, res, next) => {
392395 * required: false
393396 * schema:
394397 * type: string
395- * enum: [google, ibm, azure, polly, marytts, picotts ]
398+ * enum: [google, ibm, azure, polly]
396399 * - name: cache
397400 * description: Use result cache (default Y)
398401 * in: query
@@ -780,7 +783,7 @@ const wssStreams = {}
780783 * required: false
781784 * schema:
782785 * type: string
783- * enum: [kaldi, google, ibm, azure, awstranscribe]
786+ * enum: [google, ibm, azure, awstranscribe]
784787 * responses:
785788 * 200:
786789 * description: Websocket Url to stream the audio to, and the uri to check status and end the stream
0 commit comments