Initial commit

This commit is contained in:
Uttarayan Mondal
2021-05-29 21:56:42 +05:30
commit 3c79d27450
6 changed files with 536 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
use google_speech::{Lang, Speech};
#[test]
fn test_hello_play() {
let hello = Speech::new("Hello", Lang::en_us).unwrap();
hello.play().unwrap();
}
#[test]
fn test_hello_save() {
let hello = Speech::new("Hello", Lang::en_us).unwrap();
unsafe { hello.save("target/hello.mp3").unwrap() };
}
// #[test]
// fn test_hello_lang() {
// let mut hello = Speech::new("Hello", Lang::af).unwrap();
// hello.play().unwrap();
// hello.lang(Lang::en_us).unwrap();
// hello.play().unwrap();
// }