Skip to content

Commit 6423f0a

Browse files
committed
modify language setting
1 parent ca5deb2 commit 6423f0a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

crates/stt/src/realtime/mod.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,16 @@ impl Client {
8282

8383
pub async fn for_language(&self, language: hypr_language::Language) -> MultiClient {
8484
match language.iso639() {
85-
// hypr_language::ISO639::Ko => {
86-
// let clova = hypr_clova::realtime::Client::builder()
87-
// .api_key(self.clova_api_key.as_ref().unwrap())
88-
// .keywords(vec!["하이퍼노트".to_string()])
89-
// .build()
90-
// .await
91-
// .unwrap();
92-
// MultiClient::Clova(clova)
93-
// }
9485
hypr_language::ISO639::Ko => {
86+
let clova = hypr_clova::realtime::Client::builder()
87+
.api_key(self.clova_api_key.as_ref().unwrap())
88+
.keywords(vec!["하이퍼노트".to_string()])
89+
.build()
90+
.await
91+
.unwrap();
92+
MultiClient::Clova(clova)
93+
}
94+
hypr_language::ISO639::De => {
9595
let whisper = hypr_whisper::cloud::WhisperClient::builder()
9696
.api_base(std::env::var("WHISPER_API_BASE").unwrap())
9797
.api_key(std::env::var("WHISPER_API_KEY").unwrap())

0 commit comments

Comments
 (0)