translate-shell icon indicating copy to clipboard operation
translate-shell copied to clipboard

TODO: Bing Translator support

Open soimort opened this issue 9 years ago • 5 comments

Updated (25 Jul 2019)

POST [done]

We're using POST for Bing Translator now, because the API simply won't handle the GET method. So there will be no more hard restriction on the text size enforced by the URL length.

Display dictionary entries [done]

Bing Translator has a dictionary API now. It's not used by us yet, mainly because the JSON data it returns is relatively large (compared to others), and our tokenizer/parser isn't very efficient (#59). It would take a few seconds to parse the whole response, which is far from ideal.

Fix Text-to-Speech

The TTS also wants your cookie, now; so the existing one must be passed to an external player (such as mpv).

soimort avatar May 18 '16 01:05 soimort

Now it cannot support the bing translator anymore

jerry20130912 avatar Apr 03 '18 11:04 jerry20130912

@jerry20130912 Instead of cross-posting, please follow the guide for reporting issues: https://github.com/soimort/translate-shell/blob/develop/CONTRIBUTING.md#how-to-report-an-issue. Particularly, make sure to report the exact command and the output of trans -V on your system.

soimort avatar Apr 03 '18 11:04 soimort

Is it going to be eventually possible to have Bing translation and sound and download sound to mp3 or wav?

https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/quickstart-python-text-to-speech

Webinar Let s Build a Speech, Translation API using AZURE Bing Speech and Text Translator Api https://www.youtube.com/watch?v=EGOCgCKR5Cc

And these scripts (but they don't work for me): https://github.com/westparkcom/Python-Bing-TTS

https://github.com/davrous/BingSpeech

Bing voice is much better than google. In my opinion it sounds far more natural and more human like / fluent / flowing / smooth. Just give it a try and compare a few sentences.

omega3 avatar Jun 25 '19 08:06 omega3

@omega3 The current implementation should be already capable of handling translation and text-to-speech for BIng, just the dictionary entry feature is still missing. Which version are you using?

soimort avatar Jun 26 '19 12:06 soimort

trans -e bing -no-translate "Why not test this thing" -sp -n US,m
Voice output isn't available for English

omega3 avatar Oct 10 '23 16:10 omega3