@sekyung kwak 개인폴더를 보고 따라했습니다.

  1. 시작 전 세팅

    IBM Cloud

    Copy the API Key and URL values.

    "apikey": "e89Z6fSzQGSfzPxFUbQxWYH_B4XFLDxVkOF9N2tJMv3A",
    "url": "<https://api.us-south.speech-to-text.watson.cloud.ibm.com/instances/a127c5b3-32d4-482e-b610-ffbfdf183173>"
    
  2. curl 설치돼있는지 확인

    $ curl -V
    
  3. Step 1: Transcribe audio with no options

TIP) Windows users, replace the backslash (\\) at the end of each line with a caret (^). Make sure there are no trailing spaces.
$ curl -X POST -u "apikey:{apikey}" \\
--header "Content-Type: audio/flac" \\
--data-binary @{path_to_file}audio-file.flac \\
"{url}/v1/recognize"

위처럼 하니까 자꾸 에러나서 @Hyunwoo Park 의 도움으로 줄바꿈을 안하고 연결해서 하니까 해결됐다!

$ curl -X POST -u "apikey:e89Z6fSzQGSfzPxFUbQxWYH_B4XFLDxVkOF9N2tJMv3A" --header "Content-Type: audio/flac" --data-binary @audio-file.flac "<https://api.us-south.speech-to-text.watson.cloud.ibm.com/instances/a127c5b3-32d4-482e-b610-ffbfdf183173/v1/recognize>"

일케 치고 밑에처럼 결과창이 뜨면 성공한 것

{
  "results": [
    {
      "alternatives": [
        {
          "confidence": 0.96
          "transcript": "several tornadoes touch down as a line of
severe thunderstorms swept through Colorado on Sunday "
        }
      ],
      "final": true
    }
  ],
  "result_index": 0
}
  1. Step 2: Transcribe audio with options

$ curl -X POST -u "apikey:e89Z6fSzQGSfzPxFUbQxWYH_B4XFLDxVkOF9N2tJMv3A" --header "Content-Type: audio/flac" --data-binary @audio-file.flac "<https://api.us-south.speech-to-text.watson.cloud.ibm.com/instances/a127c5b3-32d4-482e-b610-ffbfdf183173/v1/recognize?timestamps=true&max_alternatives=3>"

결과창이 아래와 같이 뜬다.