mirror of https://github.com/ndarilek/tts-rs.git
Remove unnecessary printlns and link directives.
This commit is contained in:
parent
4079f4b3c4
commit
40e28876b2
|
@ -1,5 +1,4 @@
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
#[link(name = "AppKit", kind = "framework")]
|
|
||||||
use cocoa_foundation::base::{id, nil};
|
use cocoa_foundation::base::{id, nil};
|
||||||
use cocoa_foundation::foundation::NSString;
|
use cocoa_foundation::foundation::NSString;
|
||||||
use log::{info, trace};
|
use log::{info, trace};
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
#[cfg(any(target_os = "macos", target_os = "ios"))]
|
#[cfg(any(target_os = "macos", target_os = "ios"))]
|
||||||
#[link(name = "AVFoundation", kind = "framework")]
|
|
||||||
use std::{str::FromStr, sync::Mutex};
|
use std::{str::FromStr, sync::Mutex};
|
||||||
|
|
||||||
use cocoa_foundation::base::{id, nil, NO};
|
use cocoa_foundation::base::{id, nil, NO};
|
||||||
|
@ -42,12 +41,6 @@ impl AvFoundation {
|
||||||
utterance: id,
|
utterance: id,
|
||||||
) {
|
) {
|
||||||
trace!("speech_synthesizer_did_start_speech_utterance");
|
trace!("speech_synthesizer_did_start_speech_utterance");
|
||||||
let vid: id = unsafe { msg_send![utterance, voice] };
|
|
||||||
if vid == nil {
|
|
||||||
println!("nil voice");
|
|
||||||
} else {
|
|
||||||
println!("Got voice ID");
|
|
||||||
}
|
|
||||||
unsafe {
|
unsafe {
|
||||||
let backend_id: u64 = *this.get_ivar("backend_id");
|
let backend_id: u64 = *this.get_ivar("backend_id");
|
||||||
let backend_id = BackendId::AvFoundation(backend_id);
|
let backend_id = BackendId::AvFoundation(backend_id);
|
||||||
|
|
Loading…
Reference in New Issue