CS log

Speech-to-text API 본문

AI/NLP

Speech-to-text API

sj.cath 2024. 9. 23. 18:55

1. Create an API key

api key를 생성한 후 SSH 서버에 연결

= 사이에 띄어쓰기를 하지 말자
request.json 파일을 생성해준다.

config, you tell the Speech-to-Text API how to process the request. The encoding parameter tells the API which type of audio encoding you're using while the file is being sent to the API. FLAC is the encoding type for .raw files.

 

audio에 대해 speech-to-text 수행

The transcript value will return the Speech-to-Text API's text transcription of your audio file, and the confidence value indicates how sure the API is that it has accurately transcribed your audio.

You'll notice that you called the syncrecognize method in the request above. The Speech-to-Text API supports both synchronous and asynchronous speech to text transcription. In this example you sent it a complete audio file, but you can also use the syncrecognize method to perform streaming speech to text transcription while the user is still speaking.

You created a Speech-to-Text API request then called the Speech-to-Text API.

'AI > NLP' 카테고리의 다른 글

Entity and Sentiment Analysis with the Natural Language API  (2) 2024.09.23
Cloud Natural Language API: Qwik Start  (0) 2024.09.23
Intro to ML: Language Processing  (0) 2024.09.23
GPT-1  (1) 2024.09.18
seq2seq learning with neural networks  (0) 2024.09.12