Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for custom translation API? #247

Open
rococtz opened this issue May 9, 2024 · 3 comments
Open

Support for custom translation API? #247

rococtz opened this issue May 9, 2024 · 3 comments
Labels
feature A new feature to be added.

Comments

@rococtz
Copy link

rococtz commented May 9, 2024

Hi guys, I was trying out the app and it was really smooth setting up and using it, but now I have 2 questions, please.

  1. Do you support custom translation APIs?
    At the moment, I can see I am able to import dictionary files and I can call DeepL API for translations. But what if I host my own API endpoint? Can I configure LinguaCafe to call http://localhost:5000?query={query} or something along these lines?

  2. Is there any way to play audio for the words I am trying to learn (via the dictionary)? Or any kind of audio?

Thanks!

@simjanos-dev simjanos-dev added the feature A new feature to be added. label May 9, 2024
@simjanos-dev
Copy link
Owner

simjanos-dev commented May 9, 2024

Hi!

  1. I want to implement this, and other kind of API-s as well, but I'm focusing on other features first that more people use. I will use this github issue for this, not sure when I'll get to it.

  2. In the next update, v0.12 I've added SpeechSynthesis api. I am focusing on reading first, and want to add audio features later on, I've only added this for fun. You can use it to read out selected text, and review cards. It is supposed to be supported by most browsers, but unfortunately I could only get it to work on desktop chrome browser. It is an OS and browser dependent feature. You can test your available voices here.

I want to add two kind of audio support for words:

  • AI generated audio file packages for words which can be downloaded and used without using any external tool. You could of course replace these with human voice audio files if you can obtain them.
  • An API that can be connected to external AI tools to generate audio for words and also longer selected text.

And I also want to add an option for users to upload audio files for whole books and chapters.

But I want to focus on reading features before that, and I'll need a proper PC for the AI tools as well. I don't think these audio features will come out this year.

@rococtz
Copy link
Author

rococtz commented May 9, 2024

@simjanos-dev Thank you for the reply!
The SpeechSynthesis part sounds pretty good for the purpose I have in mind: hear how a word is pronounced.

By the way, I think you are doing a fantastic job. I have used this app for a couple of hours now and it's really high quality!

@simjanos-dev
Copy link
Owner

By the way, I think you are doing a fantastic job. I have used this app for a couple of hours now and it's really high quality!

Thank you! :)

Honestly I find it a bit buggy, and lacking a few important features still. But it will get there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature to be added.
Projects
None yet
Development

No branches or pull requests

2 participants