Skip to content

Commit 4da1a0f

Browse files
authored
Update fast-search-card.js
1 parent 656941b commit 4da1a0f

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

dist/fast-search-card.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)