Error with TranslationRecognizer in Speech SDK โ€“ this.privAudioSource.id is not a function

DEV DW 0 ํ‰ํŒ ํฌ์ธํŠธ
2025-06-24T00:10:53.7866667+00:00

แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2025-06-23 แ„‹แ…ฉแ„’แ…ฎ 6.14.34

Hello,

Iโ€™m trying to implement a speech translation feature that can automatically detect and translate speech spoken in multiple languages.

To do this, I followed the documentation from the link below:

๐Ÿ‘‰ Azure Speech Translation

Iโ€™m currently developing with JavaScript and using the microsoft-cognitiveservices-speech-sdk.

However, when I try to create a new TranslationRecognizer, I encounter the following error:

TypeError: this.privAudioSource.id is not a function. (In 'this.privAudioSource.id()', 'this.privAudioSource.id' is undefined)

Please see the attached screenshot of the code for reference.

Could you let me know what might be causing this issue or what I should check?

Thank you in advance!

Azure
Azure

Microsoft์—์„œ ๊ด€๋ฆฌํ•˜๋Š” ์ „ ์„ธ๊ณ„ ๋ฐ์ดํ„ฐ ์„ผํ„ฐ ๋„คํŠธ์›Œํฌ๋ฅผ ํ†ตํ•ด ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜๊ณผ ์„œ๋น„์Šค๋ฅผ ๋นŒ๋“œ, ๋ฐฐํฌ, ๊ด€๋ฆฌํ•˜๊ธฐ ์œ„ํ•œ ํด๋ผ์šฐ๋“œ ์ปดํ“จํŒ… ํ”Œ๋žซํผ ๋ฐ ์ธํ”„๋ผ์ž…๋‹ˆ๋‹ค.

๋Œ“๊ธ€ 0๊ฐœ ์„ค๋ช… ์—†์Œ

๋‹ต๋ณ€

์งˆ๋ฌธ ์ž‘์„ฑ์ž๋Š” ๋‹ต๋ณ€์„ '์Šน์ธ๋จ'์œผ๋กœ ํ‘œ์‹œํ•˜๊ณ , ์ค‘์žฌ์ž๋Š” ๋‹ต๋ณ€์„ '์ถ”์ฒœ๋จ'์œผ๋กœ ํ‘œ์‹œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฅผ ํ†ตํ•ด ์‚ฌ์šฉ์ž๋Š” ํ•ด๋‹น ๋‹ต๋ณ€์ด ์ž‘์„ฑ์ž์˜ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ–ˆ๋‹ค๋Š” ๊ฒƒ์„ ์•Œ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.