2023-10-10 13:55:37 +00:00
openapi : 3.0 .0
info :
2023-11-03 14:42:13 +00:00
title : Natural Language API Google
description : This API describes the endpoints and parameters to use resources from Google Cloud API.
2023-10-10 13:55:37 +00:00
contact : {}
version : '1.0'
servers :
2023-11-03 14:42:13 +00:00
- url : http://localhost:6001/api/v1/nl
2023-10-10 13:55:37 +00:00
variables : {}
paths :
2023-11-03 14:42:13 +00:00
/upload-audio-to-transcript :
post :
tags :
- Speech to text async
summary : Speech to text job
operationId : Speechtotextjob
parameters : [ ]
requestBody :
content :
multipart/form-data :
encoding : {}
schema :
required :
- audio
type : object
properties :
audio :
type : string
format : binary
languageCode :
type : string
description: 'If not provided, the default will be : pt-BR'
example : pt-BR
required : false
responses :
'200' :
description : ''
headers : {}
deprecated : false
security :
- bearer : [ ]
/query-job-status :
get :
tags :
- Speech to text async
summary : Speech to text job process
operationId : Speechtotextjobprocess
parameters :
- name : operationName
in : query
description : 'The job id returned after uploading the audio file that will be transcribed.'
required : true
style : form
explode : true
schema :
type : integer
format : int64
example : 2993135803178989324
responses :
'200' :
description : ''
headers : {}
deprecated : false
security :
- bearer : [ ]
/speech-to-text :
post :
tags :
- Speech to text sync
summary : Speech to text
operationId : Speechtotext
parameters : [ ]
requestBody :
content :
multipart/form-data :
encoding : {}
schema :
required :
- audio
type : object
properties :
audio :
type : string
format : binary
languageCode :
description: 'If not provided, the default will be : pt-BR'
type : string
example : pt-BR
required : false
responses :
'200' :
description : ''
headers : {}
deprecated : false
security :
- bearer : [ ]
2023-10-10 13:55:37 +00:00
/sentiment :
post :
tags :
2023-11-03 14:42:13 +00:00
- Sentiment
2023-10-10 13:55:37 +00:00
summary : Get sentiment
operationId : Getsentiment
parameters : [ ]
requestBody :
2023-11-03 14:42:13 +00:00
description : ''
2023-10-10 13:55:37 +00:00
content :
application/json :
schema :
2023-11-03 14:42:13 +00:00
allOf :
- $ref : '#/components/schemas/GetsentimentRequest'
2023-10-10 13:55:37 +00:00
- example :
2023-11-03 14:42:13 +00:00
text : Toda vez a mesma coisa ja to cansado de ficar ligando pra resolver esses problemas de conexão!
2023-10-10 13:55:37 +00:00
example :
2023-11-03 14:42:13 +00:00
text : Toda vez a mesma coisa ja to cansado de ficar ligando pra resolver esses problemas de conexão!
2023-10-10 13:55:37 +00:00
required : true
responses :
'200' :
description : ''
headers : {}
deprecated : false
security :
- bearer : [ ]
/text-to-speech :
get :
tags :
2023-11-03 14:42:13 +00:00
- Text to speech
2023-10-10 13:55:37 +00:00
summary : Text to speech
operationId : Texttospeech
parameters :
- name : text
in : query
2023-11-03 14:42:13 +00:00
description : ''
2023-10-10 13:55:37 +00:00
required : true
style : form
explode : true
schema :
type : string
example : Vela branca na enxurrada la vou eu de léo em léo, se o navio é pequeno do tamanho de um chapeu, não importa a volta ao mundo, é viagem de brinquedo em um barquinho de papel.
- name : voice_name
in : query
2023-11-03 14:42:13 +00:00
description : ''
2023-10-10 13:55:37 +00:00
required : false
style : form
explode : true
schema :
type : string
2023-11-03 14:42:13 +00:00
example : pt-BR-Wavenet-C
2023-10-10 13:55:37 +00:00
- name : voice_gender
in : query
2023-11-03 14:42:13 +00:00
description : ''
2023-10-10 13:55:37 +00:00
required : false
style : form
explode : true
schema :
type : string
2023-11-03 14:42:13 +00:00
example : FEMALE
2023-10-10 13:55:37 +00:00
- name : languageCode
in : query
2023-11-03 14:42:13 +00:00
description : ''
2023-10-10 13:55:37 +00:00
required : false
style : form
explode : true
schema :
type : string
2023-11-03 14:42:13 +00:00
example : pt-BR
2023-10-10 13:55:37 +00:00
responses :
'200' :
description : ''
headers : {}
deprecated : false
security :
- bearer : [ ]
/voice-config :
get :
tags :
2023-11-03 14:42:13 +00:00
- Text to speech
2023-10-10 13:55:37 +00:00
summary : Get voice config
operationId : Getvoiceconfig
parameters :
- name : languageCode
in : query
2023-11-03 14:42:13 +00:00
description : ''
2023-10-10 13:55:37 +00:00
required : false
style : form
explode : true
schema :
type : string
example : pt-Br
responses :
'200' :
description : ''
headers : {}
deprecated : false
2023-11-03 14:42:13 +00:00
security : [ ]
components :
schemas :
GetsentimentRequest :
title : GetsentimentRequest
required :
- text
type : object
properties :
text :
type : string
example :
text : Toda vez a mesma coisa ja to cansado de ficar ligando pra resolver esses problemas de conexão!
2023-10-10 13:55:37 +00:00
securitySchemes :
bearer :
type : http
scheme : bearer
2023-11-03 14:42:13 +00:00
security : [ ]
tags :
- name : Speech to text async
- name : Speech to text sync
- name : Sentiment
- name : Text to speech