Compare commits

...

4 Commits

2 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ serde = { version = "1", optional = true, features = ["derive"] }
thiserror = "1"
[dev-dependencies]
env_logger = "0.9"
env_logger = "0.10"
[target.'cfg(windows)'.dependencies]
tolk = { version = "0.5", optional = true }

View File

@ -1,5 +1,5 @@
#[cfg(any(target_os = "macos", target_os = "ios"))]
use std::{str::FromStr, sync::Mutex};
use std::sync::Mutex;
use cocoa_foundation::base::{id, nil, NO};
use cocoa_foundation::foundation::NSString;
@ -10,7 +10,7 @@ use lazy_static::lazy_static;
use log::{info, trace};
use objc::runtime::{Object, Sel};
use objc::{class, declare::ClassDecl, msg_send, sel, sel_impl};
use unic_langid::LanguageIdentifier;
use oxilangtag::LanguageTag;
use crate::{Backend, BackendId, Error, Features, Gender, UtteranceId, Voice, CALLBACKS};
@ -312,7 +312,7 @@ impl Backend for AvFoundation {
CFString::wrap_under_get_rule(msg_send![*v as *const Object, language])
};
let language = language.to_string();
let language = LanguageIdentifier::from_str(&language).unwrap();
let language = LanguageTag::from_str(&language).unwrap();
Voice {
id: id.to_string(),
name: name.to_string(),