Set 앱이 Tauri 프레임워크를 기반으로 한 오프라인 노트 앱에 온디바이스 음성 텍스트 변환 기능을 추가했다고 밝혔다.
이 기능은 5비트 양자화된 Whisper small 모델(약 190 MB)을 whisper-rs 바인딩을 통해 사용하며, 모델은 처음 음성 텍스트 변환을 켤 때 Hugging Face 저장소에서 다운로드된다.
I think out loud. When I'm working through a problem or an idea, I talk it through, usually, and the structure I end up writing often starts from this random stream of thinking.
2020 M1 MacBook Pro에서 GPU 가속을 사용할 경우 60초 길이의 음성을 3.5초에 처리하며 메모리 사용량은 350 MB 이하이다. CPU만 사용할 때는 4.9초가 소요된다. 깨끗한 음성에서의 단어 오류율은 3.9%, 어려운 녹음에서는 10.2%이며, 어려운 녹음의 구체적인 유형은 명시되지 않았다.
let mut params = FullParams::new(SamplingStrategy::Greedy { best_of: 1 });
params.set_n_threads(threads()); // cores - 1, at most 8
params.set_language(Some(language.unwrap_or("auto")));
params.set_no_timestamps(true);
params.set_suppress_blank(true);
params.set_suppress_nst(true); // no "[Music]" or "(coughs)"
맥에서는 Metal GPU 백엔드를 사용하지만, 윈도우와 리눅스에서는 현재 CPU만으로 동작한다. 바이너리 크기는 음성 텍스트 변환 기능을 포함해 2.8 MB 증가했으며, 첫 실행 시 모델 로드에 약 90 ms가 소요된다.
출처: Set
원문 작성자: rootstring
댓글
댓글 쓰기