pawurb / normit Goto Github PK
View Code? Open in Web Editor NEWTranslations with speech synthesis in your terminal as a node package
Translations with speech synthesis in your terminal as a node package
This issue affects both termit and normit.
In normit, I get the following behavior:
$ normit en es hello
NORMIT: There seems to be a problem with your internet connection
In termit, I get the following behavior:
$ termit en es hello
/usr/lib/ruby/gems/2.3.0/gems/termit-2.13.0/lib/termit/text_response_handler.rb:22:in `extract_translation': undefined method `split' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/gems/2.3.0/gems/termit-2.13.0/lib/termit/text_response_handler.rb:13:in `call'
from /usr/lib/ruby/gems/2.3.0/gems/termit-2.13.0/lib/termit/text_translator.rb:13:in `call'
from /usr/lib/ruby/gems/2.3.0/gems/termit-2.13.0/lib/termit/main.rb:10:in `translate'
from /usr/lib/ruby/gems/2.3.0/gems/termit-2.13.0/bin/termit:10:in `<top (required)>'
from /usr/bin/termit:23:in `load'
from /usr/bin/termit:23:in `<main>'
Hi,
I don't know javascript therefore I am not able to ascertain the source/nature of the problem. But normit seems to have stopped translating. All I get is 'There seems to be a problem with your internet connection'. I have tried it from two different places. Got the same response.
Could you please look into it?
Thanks a lot for the library! I am using it in an IOT project.
.. could maybe be changed to bing translate.
cool thing!
thank you! :-)
NORMIT: There seems to be a problem with your internet connection, or the language codes you provided are invalid
Hi,
I really like the simple usage of normit
and I believe that CLI-translation tools are still underrated.
But since normit
is not maintained anymore, I wrote the new tool attranslate
that does a similar thing as normit
: https://github.com/fkirc/attranslate
However, there is still a caveat.
attranslate
is designed to translate entire apps or websites instead of CLI texts.
In theory, it would be be trivial to extend attranslate
to translate CLI texts.
In practice, however, it is necessary to configure an API-key before using attranslate
.
Configuring such an API-key is easy for any serious app or website, but it is tedious if you want to install and run attranslate
just for a one-off task.
So my question is:
Are you aware of any high-quality translation service that works without any API-key?
Scraping Google Translate or Bing might be doable, but I am not sure whether this is stable or against their terms of service?
If this is doable, then it might be easy to adopt normit
-functionality for attranslate
.
Would be awesome if normit could accept text from stdin so you could do: normit en es < myfile.txt
or even webtorrent "magnet_link_to_book" --stdout | normit en es -t
to torrent a book and have it translated and read to you live!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.