File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use base64::prelude::*;
44use futures_util:: { SinkExt , StreamExt } ;
55use reqwest_websocket:: { RequestBuilderExt , WebSocket } ;
66
7- #[ derive( Debug , serde:: Deserialize ) ]
7+ #[ derive( Debug , Default , serde:: Deserialize ) ]
88pub struct Alignment {
99 pub chars : Vec < String > ,
1010}
@@ -29,7 +29,6 @@ impl Response {
2929 }
3030
3131 pub fn get_audio_bytes ( & self ) -> Option < Vec < u8 > > {
32- let _ = self . alignment . as_ref ( ) ?;
3332 self . audio
3433 . as_ref ( )
3534 . and_then ( |audio_base64| BASE64_STANDARD . decode ( audio_base64) . ok ( ) )
@@ -186,7 +185,7 @@ impl ElevenlabsTTS {
186185 ) ) ;
187186 }
188187
189- if response. alignment . is_some ( ) && response . audio . is_some ( ) {
188+ if response. audio . is_some ( ) {
190189 log:: trace!(
191190 "Elevenlabs TTS audio chunk received, size: {}" ,
192191 response. audio. as_ref( ) . unwrap( ) . len( )
You can’t perform that action at this time.
0 commit comments