1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

google speechをclojureから使う

Last updated at Posted at 2013-11-08

[hellonico/speech-recognition "1.0.1"]を使う。

project.clj
(defproject aaa "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.5.1"]
                 [hellonico/speech-recognition "1.0.1"]])

replで実験。flacの音声ファイルを指定するだけ。

$ lein repl
user> (use '[speech-recognition.hear :as hear])
nil
user> hear
# <hear$hear speech_recognition.hear$hear@7f23663b>
user> (binding [
    hear/*language* "ja" 
    hear/*sample-time* 1720]
   (hear/post-to-google "a.flac"))
"{\"status\":0,\"id\":\"91a29a29cb62ce5095019a632ee76dff-1\",\"hypotheses\":[{\"utterance\":\"すごいね\",\"confidence\":0.69594836}]}\n"
user> 

すごいねと認識された。
まさにすごいね

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?