This is an old revision of the document!
$ curl https://storage.yandexcloud.net/yandexcloud-yc/install.sh | bash
$ $HOME/yandex-cloud/bin/yc init Welcome! This command will take you through the configuration process. Please go to https://oauth.yandex.ru/authorize?response_type=token&client_id=1a6990aa636648e9b2ef855fa7bec2fb in order to obtain OAuth token. Please enter OAuth token: AgAAAAA5aXjoAATuwTc4tOJXokpGsOqgIlk1NYI ... Please choose folder to use: [1] default (id = b1gg4j6ru4esprat3uu7) ... 1 ... n
$ $HOME/yandex-cloud/bin/yc config set token A.....................................k $ $HOME/yandex-cloud/bin/yc config list
$ wget http://val.bmstu.ru/unix/Media/speech.ogg
$ IAM_TOKEN=`$HOME/yandex-cloud/bin/yc iam create-token`
$ FOLDER_ID=b1gg4j6ru4esprat3uu7
$ curl -s -X POST -H "Authorization: Bearer ${IAM_TOKEN}" --data-binary "@speech.ogg" \
"https://stt.api.cloud.yandex.net/speech/v1/stt:recognize?folderId=${FOLDER_ID}" \
| jq '.result' | tr -d '"'