|
@@ -15,7 +15,12 @@ const DEFAULT_TRANSCRIBER_LANG = 'en-US';
|
15
|
15
|
* @returns {string}
|
16
|
16
|
*/
|
17
|
17
|
export function determineTranscriptionLanguage(config: Object) {
|
18
|
|
- const { preferredTranscribeLanguage, transcribeWithAppLanguage = true } = config;
|
|
18
|
+ const { preferredTranscribeLanguage, transcribeWithAppLanguage = true, transcribingEnabled } = config;
|
|
19
|
+
|
|
20
|
+ // if transcriptions are not enabled nothing to determine
|
|
21
|
+ if (!transcribingEnabled) {
|
|
22
|
+ return undefined;
|
|
23
|
+ }
|
19
|
24
|
|
20
|
25
|
// Depending on the config either use the language that the app automatically detected or the hardcoded
|
21
|
26
|
// config BCP47 value.
|