User Tools

Site Tools


yandex_speechkit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
yandex_speechkit [2019/11/21 14:56]
val [Проверка распознавания речи]
yandex_speechkit [2023/07/16 06:04] (current)
val [В первый раз]
Line 31: Line 31:
 Please go to https://​oauth.yandex.ru/​authorize?​response_type=token&​client_id=1a6990aa636648e9b2ef855fa7bec2fb in order to obtain OAuth token. Please go to https://​oauth.yandex.ru/​authorize?​response_type=token&​client_id=1a6990aa636648e9b2ef855fa7bec2fb in order to obtain OAuth token.
  
-Please enter OAuth token: A.......................................k+Please enter OAuth token: A.........................................I 
 ... ...
 Please choose folder to use: Please choose folder to use:
- [1] default (id = b1gmpublpjhm23dm8nfk+ [1] default (id = b1gg4j6ru4esprat3uu7
-...+...   1 
 +...   n
 </​code>​ </​code>​
  
 ==== После "​Выйти на всех устройствах"​ ==== ==== После "​Выйти на всех устройствах"​ ====
 <​code>​ <​code>​
-$ $HOME/​yandex-cloud/​bin/​yc config set token A.....................................k+$ $HOME/​yandex-cloud/​bin/​yc config set token A............................................I
  
 $ $HOME/​yandex-cloud/​bin/​yc config list $ $HOME/​yandex-cloud/​bin/​yc config list
Line 49: Line 51:
 <​code>​ <​code>​
 $ wget http://​val.bmstu.ru/​unix/​Media/​speech.ogg $ wget http://​val.bmstu.ru/​unix/​Media/​speech.ogg
 +или
 +$ mv -v /​usr/​share/​asterisk/​sounds/​recordings/​speech.ogg .
  
 $ IAM_TOKEN=`$HOME/​yandex-cloud/​bin/​yc iam create-token` $ IAM_TOKEN=`$HOME/​yandex-cloud/​bin/​yc iam create-token`
  
-$ FOLDER_ID=b1gmpublpjhm23dm8nfk+$ FOLDER_ID=b1gg4j6ru4esprat3uu7
  
 $ curl -s -X POST -H "​Authorization:​ Bearer ${IAM_TOKEN}"​ --data-binary "​@speech.ogg"​ \ $ curl -s -X POST -H "​Authorization:​ Bearer ${IAM_TOKEN}"​ --data-binary "​@speech.ogg"​ \
yandex_speechkit.1574337391.txt.gz · Last modified: 2019/11/21 14:56 by val