File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -10811,28 +10811,22 @@ class FastSearchCard extends HTMLElement {
1081110811 }
1081210812 }
1081310813
10814- // ✅ NEU: TTS Service Call Function
1081510814 speakTTS(text, entityId) {
1081610815 console.log(`🗣️ Speaking via Amazon Polly: "${text}" on ${entityId}`);
1081710816
1081810817 try {
1081910818 this._hass.callService('tts', 'amazon_polly_say', {
1082010819 entity_id: entityId,
10821- message: text,
10822- options: {
10823- voice: 'Marlene',
10824- language: 'de-DE'
10825- }
10820+ message: text
1082610821 });
1082710822
10828- // Button Status Update
1082910823 this.updateTTSButtonState('speaking');
1083010824
1083110825 } catch (error) {
1083210826 console.error('❌ TTS Amazon Polly failed:', error);
1083310827 this.updateTTSButtonState('error');
1083410828 }
10835- }
10829+ }
1083610830
1083710831 updateTTSButtonState(state) {
1083810832 // Finde den aktuell aktiven TTS Button
You can’t perform that action at this time.
0 commit comments