TTS Controller
Post TTS Request
POST http://localhost:8080/organizations/{organizationId}/projects/{projectId}/tts
TTS 요청을 보내고 sessionId를받습니다. 프로세스가 완료되면 합성 된 오디오 파일이 완성됩니다. Send a TTS request and receive the sessionId. the synthesized audio file when the process is done.
Path Parameters
organizationId
object
The ID of the zeroth-ee ai.alabs.tts.project.
projectId
object
The ID of the zeroth-ee ai.alabs.tts.project.
Request Body
text
string
The text to speak.
speaker
string
The ID of the speaker (voice).
speed
number
The speed (default 1.0).
sampleRate
integer
The sample rate of the synthesized audio (default depends on configuration).
model
string
The model that should be used to synthesize the audio.
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
Content-Length: 58
{
"sessionId" : "5b66f40f-4df8-4b96-8dba-e23b61bd246d"
}Path
Type
Optional
Description
sessionId
String
true
The ID of the session that can be used to identify the speech data.
Get Audio Url
GET http://localhost:8080/organizations/{organizationId}/projects/{projectId}/speech-data/{sessionId}
미리 지정된 URL을 가져옵니다. Get the presigned url.
Path Parameters
organizationId
object
projectId
object
sessionId
object
Path
Type
Optional
Description
url
String
true
The presigned url of the audio file.
audioLength
Decimal
true
The length of the audio file.
Get Speech Data
GET http://localhost:8080/organizations/{organizationId}/projects/{projectId}/speech-data/{sessionId}
모든 음성 데이터 요청의 페이지 목록을 가져옵니다. Get a paginated list of all speech data requests.
Path Parameters
organizationId
object
projectId
object
Query Parameters
page
integer
Default value: '0'.
size
integer
Must be at most 100.Default value: '10'.
Path
Type
Optional
Description
totalPages
Integer
true
totalElements
Integer
true
size
Integer
true
content
Array[Object]
true
content[].id
String
true
The entity id.
content[].sessionId
String
true
The zeroth session id.
content[].startAt
String
true
The start time of the request.
content[].endAt
String
true
The end time of the request.
content[].webSocketCloseStatus
Integer
true
The web socket close status of the client.
content[].webSocketCloseReason
String
true
The web socket close reason of the client.
content[].requestText
String
true
The text of the tts request.
content[].requestSpeed
Decimal
true
The speed of the tts request.
content[].requestSpeaker
String
true
The speaker of the tts request.
content[].audioLength
Decimal
true
The length of the generated audio.
sort
Object
true
sort.sorted
Boolean
true
sort.unsorted
Boolean
true
sort.empty
Boolean
true
number
Integer
true
numberOfElements
Integer
true
pageable
Object
true
pageable.offset
Integer
true
pageable.sort
Object
true
pageable.sort.sorted
Boolean
true
pageable.sort.unsorted
Boolean
true
pageable.sort.empty
Boolean
true
pageable.unpaged
Boolean
true
pageable.pageNumber
Integer
true
pageable.pageSize
Integer
true
pageable.paged
Boolean
true
first
Boolean
true
last
Boolean
true
empty
Boolean
true
Last updated
Was this helpful?