2
0

rm examples

This commit is contained in:
2026-03-28 14:22:40 +09:00
parent d5452bdcba
commit bbb6e07b3a
2 changed files with 1 additions and 20 deletions

1
.gitignore vendored
View File

@@ -25,3 +25,4 @@ Thumbs.db
/docs
/example
/config
/model

View File

@@ -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."),
}
}