mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
TTS
This commit is contained in:
@@ -1,3 +1,15 @@
|
||||
<div>
|
||||
{{-- The whole world belongs to you. --}}
|
||||
<div
|
||||
x-data="{
|
||||
audioSrc: @entangle('audioSrc'),
|
||||
play() {
|
||||
console.log(this.audioSrc);
|
||||
$refs.sourceRef.src = this.audioSrc + '?t=' + new Date().getTime();
|
||||
$refs.playMe.load();
|
||||
$refs.playMe.play();
|
||||
},
|
||||
}"
|
||||
>
|
||||
<audio x-ref="playMe">
|
||||
<source x-ref="sourceRef" src="" type="audio/wav" x-init="$watch('audioSrc', value => play())"/>
|
||||
</audio>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user