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:
@@ -37,9 +37,9 @@
|
||||
{{ $weather }} (um {{ \App\Support\Carbon::parse($changed)->asTime() }} Uhr aktualisiert - jede 4. Stunde)
|
||||
</div>
|
||||
@else
|
||||
<div class="text-md leading-6 text-gray-900 text-center max-w-screen-2xl">
|
||||
{{--<div class="text-md leading-6 text-gray-900 text-center max-w-screen-2xl">
|
||||
Wetterdaten werden in Kürze wieder verfügbar sein. (OpenAI Quota exceeded)
|
||||
</div>
|
||||
</div>--}}
|
||||
@endif
|
||||
<div
|
||||
x-data="{
|
||||
|
||||
31
resources/views/livewire/hello.blade.php
Normal file
31
resources/views/livewire/hello.blade.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<div>
|
||||
<div
|
||||
class="mt-10 flex flex-col items-center justify-center gap-x-6 bg-white pb-12">
|
||||
@if(!$invoicePaid)
|
||||
<div class="text-xl font-semibold text-gray-900 py-6">
|
||||
Deine Nachricht wird live vorgelesen.
|
||||
</div>
|
||||
<div class="text-xl font-semibold text-gray-900 py-6 w-full px-12">
|
||||
<x-textarea wire:model="message" label="Deine Nachricht hier" corner-hint="max. 255 Zeichen"/>
|
||||
</div>
|
||||
<div class="text-xl font-semibold text-gray-900 py-6">
|
||||
{{ __('Click QR-Code to open your wallet') }}
|
||||
</div>
|
||||
<div class="flex justify-center" wire:key="qrcode">
|
||||
<a href="lightning:{{ $this->invoice }}">
|
||||
<img src="{{ 'data:image/png;base64, '. $this->qrCode }}"
|
||||
alt="qrcode">
|
||||
</a>
|
||||
</div>
|
||||
<div class="text-xl font-semibold text-gray-900 py-6">
|
||||
21 sats
|
||||
</div>
|
||||
<div wire:poll.keep-alive="checkPaymentHash"
|
||||
wire:key="checkPaymentHash"></div>
|
||||
@else
|
||||
<div class="text-xl font-semibold text-gray-900 py-6">
|
||||
Danke für deine Nachricht. Wenn alles klappt, dann werden wir die Nachricht gleich hören.
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@@ -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