Skip to content

Commit

Permalink
Fix: nth(1) -> nth(0)
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Sep 10, 2023
1 parent d98c2df commit 793c7be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aivoice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl AiVoice {
if !voice_preset_names.iter().any(|x| x == "AIVoiceVox") {
self.host.add_voice_preset(VoicePreset {
preset_name: "AIVoiceVox".to_string(),
voice_name: self.speakers.values().nth(1).unwrap().internal_name.clone(),
voice_name: self.speakers.values().nth(0).unwrap().internal_name.clone(),
volume: 1.0,
speed: 1.0,
pitch: 1.0,
Expand Down

0 comments on commit 793c7be

Please sign in to comment.