1
1

More than 3 years have passed since last update.

Watson Speech to Text (STT) 挙動確認編

Last updated at Posted at 2019-07-31

カスタムモデルの挙動確認について

カスタムモデルを作ってみたはいいが、どうやって挙動確認しようかと思ったと人へ
watson-developer-cloudのspeech-to-text-nodejsというサンプルを使用しましょう。
スクリーンショット 2019-07-11 18.01.47.png

 git clone https://github.com/watson-developer-cloud/speech-to-text-nodejs.git

(以下README.mdと同じなのですが)

cp .env.example .env
 vi .env

apikeyの確認はこのページから、サービス資格情報>資格情報の表示>apikey
image.png

image.png

demo.jsxのオプションを指定する箇所でカスタム言語モデルのIDを指定して下さい。
(音響モデルを指定する場合は、
acoustic_customization_id:"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",)

speech-to-text-nodejs>views>demo.jsx
customization_id:"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",

image.png

npm install
npm start

あとはブラウザでlocalhost:3000にアクセスすればローカル挙動確認ができますね。
image.png

関連記事

Watson Speech to Text (STT) 概要編
Watson Speech to Text (STT) 基本操作curl編
音声認識の精度測定、単語誤り率(WER)と文字誤り率(CER)

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