What speech recognition and speech recognition libraries are available for Clojure?

What speech recognition and speech recognition libraries are available for Clojure? So far i have found

https://github.com/klutometis/speech-recognition

https://github.com/klutometis/speech-synthesis

both of them use Google and therefore are network dependent.

I am looking for those that are not dependent on working on the Internet.

+7
source share
3 answers

I think this is pretty much unexplored territory as existing Clojure libraries go.

The best thing is probably to look at the many available Java speech recognition libraries and use them from Clojure - they will be much more mature and capable at the moment.

You can watch:

Using Java libraries from Clojure is extremely simple - it is usually as simple as importing the correct classes and executing (.someMethod someObject arg1 arg2)

If you are creating a Clojure wrapper for speech recognition, please contribute to the community! I know that quite a few people (including myself) would be interested in doing some speech work in Clojure.

+6
source

Until now, I could use my own TTS system, here is my code, maybe this will help someone?

 (use '[speech-synthesis.say :as say]) (use '[clojure.java.shell :only [sh]]) (defn festival [x](sh "sh" "-c" (str "echo " x " | festival --tts"))) (defn espeak [x] (sh "espeak" x)) (defn mac-say[x] (sh "say" x)) (defn check-if-installed[x] (:exit(sh "sh" "-c" (str "command -v " x " >/dev/null 2>&1 || { echo >&2 \"\"; exit 1; }")))) (defn engine-check[] (def engines (conj["Google" ] (if (= (check-if-installed "festival") 0) "Festival" ) (if (= (check-if-installed "espeak") 0) "ESpeak" ) (if (= (check-if-installed "say") 0) "Say" ))) ;; Say is the Apple say command (remove nil? engines)) (defn set-engine [eng](cond (= eng "Google")(def speak say) (= eng "Festival" )(def speak festival) (= eng "ESpeak") (def speak espeak) (= eng "Say") (def speak mac-say))) 

then to use

 (set-engine "Festival") ;; set the engine (speak "Hello, I can talk") ;; speak your text 
+1
source

I used espeak through the JNI java library that I wrote to generate speech from text in clojure. The main library is available on github. Unfortunately, for reasons beyond my control, I was currently forced to focus on another problem. However, write me a message if you want to use my library to interact with clojure's espeak - I can send you some examples of how I used them.

+1
source

All Articles