This is an old revision of the document!
$ curl https://storage.yandexcloud.net/yandexcloud-yc/install.sh | bash
$ source .bashrc
$ 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: A.......................................k ... Please choose folder to use: [1] default (id = b1gmpublpjhm23dm8nfk) ...
$ yc config set token A.....................................k $ yc config list
$ export IAM_TOKEN=`yc iam create-token` $ export FOLDER_ID=b1gmpublpjhm23dm8nfk $ 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 '"'