Console creations

Start a durable Speech or Transcription job

Console cookie authentication and a trusted console Origin are required. Choose a client UUID prefixed crj_. Speech accepts JSON metadata. Transcription accepts multipart metadata (a JSON string) plus media (up to 25 MiB). A 202 means the input is stored and the job will continue after the browser closes. Repeat the same ID and payload after a lost response; a changed payload returns 409. Uses workspace credits through the normal product meter. Do not automatically create another ID after an uncertain response.

put/projects/{projectId}/creation-jobs/{id}

Request

  • Base URL: https://api.pyai.com
  • URL: https://api.pyai.com/projects/{projectId}/creation-jobs/{id}
  • Auth: API key in cookie pyai_session

Path parameters

projectIdstring required
idstring required

Request body

product'speak' | 'hear' required
namestring required
textstring

Speech script, up to 2,000 Unicode characters. Empty for transcription.

voiceIdstring

Required for Speech.

voiceNamestring
format'mp3' | 'wav' | 'txt' required
language'' | 'en' | 'es' | 'fr' | 'de' | 'hi' | 'it' | 'pt' | 'nl' | 'zh' | 'yue' | 'ar' | 'id' | 'ko' | 'th' | 'vi' | 'ja' | 'tr' | 'ms' | 'sv' | 'da' | 'fi' | 'pl' | 'cs' | 'fil' | 'fa' | 'el' | 'hu' | 'mk' | 'ro'

Spoken language for Transcription; empty detects it.

sourceNamestring

Response

Durably accepted, or the existing job for this request ID.

idstring required
product'speak' | 'hear' required
namestring required
status'queued' | 'running' | 'completed' | 'failed' required
stage'queued' | 'connecting' | 'generating' | 'transcribing' | 'saving' | 'completed' | 'failed' required
error_codestring nullable required
charge'not_started' | 'unconfirmed' | 'metered' required
created_atinteger required

Unix milliseconds.

updated_atinteger required

Unix milliseconds.

creation_idstring nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.