1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-12-02 14:09:38 +00:00

Add even more trace logging.

This commit is contained in:
Nolan Darilek 2021-03-12 06:28:02 -06:00
parent 81eba99594
commit e91637a67c

View File

@ -226,6 +226,7 @@ impl Backend for AvFoundation {
}
fn set_pitch(&mut self, pitch: f32) -> Result<(), Error> {
trace!("set_pitch({})", pitch);
self.pitch = pitch;
Ok(())
}
@ -247,11 +248,13 @@ impl Backend for AvFoundation {
}
fn set_volume(&mut self, volume: f32) -> Result<(), Error> {
trace!("set_volume({})", volume);
self.volume = volume;
Ok(())
}
fn is_speaking(&self) -> Result<bool, Error> {
trace!("is_speaking()");
let is_speaking: i8 = unsafe { msg_send![self.synth, isSpeaking] };
Ok(is_speaking == 1)
}