fix: Alexa TTS で locale を空にして日本語発話を修正

locale: 'ja-JP' を指定すると一瞬音が出るだけで発話されない問題を修正。
locale: '' (空文字) を使用するとデバイス設定の言語 (ja-jp) が使われ、
日本語・英語・漢字・ひらがな・カタカナ全て正常に発話される。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Akira
2026-03-02 19:29:47 +09:00
parent 34107f98a2
commit 1496f4a5e6

View File

@@ -136,7 +136,7 @@ app.post('/speak', async function(req, res) {
deviceType: target.deviceType,
deviceSerialNumber: target.serialNumber,
customerId: customerId,
locale: 'ja-JP',
locale: '',
textToSpeak: text,
},
},