rm examples
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -25,3 +25,4 @@ Thumbs.db
|
|||||||
/docs
|
/docs
|
||||||
/example
|
/example
|
||||||
/config
|
/config
|
||||||
|
/model
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
fn main() {
|
|
||||||
eprintln!("Voice test: initializing...");
|
|
||||||
let voice = match aishell::voice::VoiceSystem::new() {
|
|
||||||
Some(v) => v,
|
|
||||||
None => {
|
|
||||||
eprintln!("Voice system not available. Check ELEVENLABS_API_KEY in .env");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
eprintln!("Voice test: listening (speak now)...");
|
|
||||||
match voice.listen() {
|
|
||||||
Some(text) => {
|
|
||||||
eprintln!("Recognized: {text}");
|
|
||||||
eprintln!("Speaking back...");
|
|
||||||
voice.speak(&text);
|
|
||||||
}
|
|
||||||
None => eprintln!("No speech detected."),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user