leetcode-mafia / cheetah

Mac app for crushing remote tech interviews with AI
Creative Commons Zero v1.0 Universal
4.08k stars 296 forks source link

Language #13

Open lukaszjava opened 1 year ago

lukaszjava commented 1 year ago

Hi, How to change the language of the application? Is it possible to make the application work in another language? If I use the app in English, it's fine, but it doesn't recognize other languages.

leetcode-mafia commented 1 year ago

You can try using the multilingual model:

defaults write org.phrack.Cheetah whisperModel -string ggml-medium

(Depending on the language, you might need ggml-large instead, but that requires >10 GB of RAM)

I haven't tested this. Let me know how it goes.

chengzhanli commented 1 year ago

I have replaced the language model in the project with ggml-medium, but the output of the program is still in English. In some cases, it can be displayed (spoken in a foreign language), and in a few cases, other languages of voice input can be translated into English. But the desired situation is to output the spoken language and answer the corresponding language. Maybe the language settings menu is necessary.

leetcode-mafia commented 1 year ago

In that case, you should try translating some or all of the prompts.

It may be sufficient to add something trivial like "Provide the final answer in Spanish" in shorthandInstruction, but I would expect better results if extractQuestion is also changed so that the question is extracted in the spoken language.

Translating everything is likely to produce the best results.