2017-04-21 8 views
2

이 페이지를 열어 주셔서 감사합니다.Watson Speech to Text : 윈도우즈에서 내 사용자 이름과 패스워드를 어떻게 설정합니까?

저는 강연회의 오디오 파일을 Speech to Text로 텍스트로 바꾸고 텍스트를 컬하고 싶습니다.

아마도 기본 오류가 있습니다. 공식 Bluemix 문서를 읽었지만 이해할 수 없었습니다.

이미 내 서비스 인증 정보가 있습니다. 하지만 나는 그들을 설정할 수 없습니다.

나는 이런 식으로 설정하려고했습니다.

Bluemix에 예 공식 문서 >>

curl -X POST -u {username}:{password} 
--header "Content-Type: audio/flac" 
--header "Transfer-Encoding: chunked" 
--data-binary @{path}audio-file.flac 
"https://stream.watsonplatform.net/speech-to-text/api/v1/recognize?continuous=true" 

1을 시도 >>

curl -X POST -u "\"username\":\"password\"" 
--header "Content-Type: audio/flac" 
--header "Transfer-Encoding: chunked" 
--data-binary @{path}audio-file.flac 
"https://stream.watsonplatform.net/speech-to-text/api/v1/recognize?continuous=true" 

2를 시도 >>

curl -X POST -u 'username':'password\' 
--header "Content-Type: audio/flac" 
--header "Transfer-Encoding: chunked" 
--data-binary @{path}audio-file.flac 
"https://stream.watsonplatform.net/speech-to-text/api/v1/recognize?continuous=true" 

이 코드는 오류를 다음과 노동 않았습니다.

경고 : "{경로} 오디오 file.flac를"파일 에서 데이터를 읽을 수 없습니다은 경고 :이 빈 POST한다. 컬 : (60) SSL 인증서 문제 : 여기 인증서 체인 자세한 내용에서 자체 서명 된 인증서 : http://curl.haxx.se/docs/sslcerts.html

내 오디오 파일을 배치해야하는 위치 모르겠어요 게다가 및 파일에 어디해야 내가 경로에서 . 터미널의 pwd에서 그것들로 경로를 지정하고 그들을 로컬 디렉토리에 놓습니다. 잘못 됐나?

조언을 해 주시겠습니까?

답변

0

오디오 파일의 절대 경로를 입력해야합니다. 예를 들어

(파일 내 현재 디렉토리 인 경우) :

curl -X POST -u "myusername":"mypassword" --header "Content-Type: audio/flac" --data-binary "@audio-file1.flac" --data-binary "@audio-file2.flac" "https://stream.watsonplatform.net/speech-to-text/api/v1/recognize?timestamps=true&word_alternatives_threshold=0.9&keywords=%22colorado%22%2C%22tornado%22%2C%22tornadoes%22&keywords_threshold=0.5&continuous=true" 

Sample Audio Files

+1

당신을 아주 많이 감사합니다! 이제는 잘 작동합니다. –