fix altLanguages (#567)

* fix altLanguages

* adding testcase
This commit is contained in:
Hoan Luu Huu
2023-12-16 20:35:09 +07:00
committed by GitHub
parent 077460d0e2
commit bcb4bf43bf
2 changed files with 14 additions and 4 deletions

View File

@@ -155,6 +155,9 @@ test('\'transcribe\' test - deepgram config options', async(t) => {
"recognizer": {
"vendor": "deepgram",
"language": "en-US",
"altLanguages": [
"en-US"
],
"deepgramOptions": {
"model": "2-ea",
"tier": "nova",
@@ -172,6 +175,9 @@ test('\'transcribe\' test - deepgram config options', async(t) => {
"transcriptionHook": "/transcriptionHook",
"recognizer": {
"vendor": "deepgram",
"altLanguages": [
"en-AU"
],
"hints": ["customer support", "sales", "human resources", "HR"],
"deepgramOptions": {
"apiKey": DEEPGRAM_API_KEY,