Telestream Cloud Timed Text Speech Ruby SDK
This library provides a low-level interface to the REST API of Telestream Cloud, the online video encoding service.
Getting Started
Initialize client
require 'telestream_cloud/tts'
TelestreamCloud::Tts.configure do |config|
config.api_key['X-Api-Key'] = '[API KEY]'
end
client = TelestreamCloud::Tts::TtsApi.new
Create a project
client.create_project(name: 'Example project name', language: 'en-US')
Create job from local file
project_id = '...'
uploader = TelestreamCloud::Flip::Uploader.new(
client,
project_id: project_id,
file: '/path/to/file.mp4',
)
job_id = uploader.upload
Create job from source URL
project_id = '...'
client.create_job(project_id, source_url: 'http://url/to/file.mp4')
Documentation for API Endpoints
All URIs are relative to https://api.cloud.telestream.net/tts/v1.0
Class | Method | HTTP request | Description |
---|---|---|---|
TelestreamCloud::Tts::TtsApi | corpora | GET /projects/projectID/corpora | Returns a collection of Corpora |
TelestreamCloud::Tts::TtsApi | corpus | GET /projects/projectID/corpora/name | Returns the Corpus |
TelestreamCloud::Tts::TtsApi | create_corpus | POST /projects/projectID/corpora/name | Creates a new Corpus |
TelestreamCloud::Tts::TtsApi | create_job | POST /projects/projectID/jobs | Creates a new Job |
TelestreamCloud::Tts::TtsApi | create_project | POST /projects | Creates a new Project |
TelestreamCloud::Tts::TtsApi | delete_corpus | DELETE /projects/projectID/corpora/name | Creates a new Corpus |
TelestreamCloud::Tts::TtsApi | delete_job | DELETE /projects/projectID/jobs/id | Deletes the Job |
TelestreamCloud::Tts::TtsApi | delete_project | DELETE /projects/projectID | Deletes the Project |
TelestreamCloud::Tts::TtsApi | job | GET /projects/projectID/jobs/id | Returns the Job |
TelestreamCloud::Tts::TtsApi | job_result | GET /projects/projectID/jobs/id/result | Returns the Job Result |
TelestreamCloud::Tts::TtsApi | jobs | GET /projects/projectID/jobs | Returns a collection of Jobs |
TelestreamCloud::Tts::TtsApi | project | GET /projects/projectID | Returns the Project |
TelestreamCloud::Tts::TtsApi | projects | GET /projects | Returns a collection of Projects |
TelestreamCloud::Tts::TtsApi | train_project | POST /projects/projectID/train | Queues training |
TelestreamCloud::Tts::TtsApi | update_project | PUT /projects/projectID | Updates an existing Project |
TelestreamCloud::Tts::TtsApi | upload_video | POST /projects/projectID/jobs/upload | Creates an upload session |
Documentation for Models
- TelestreamCloud::Tts::CorporaCollection
- TelestreamCloud::Tts::Corpus
- TelestreamCloud::Tts::ErrorResponse
- TelestreamCloud::Tts::ExtraFile
- TelestreamCloud::Tts::Fragment
- TelestreamCloud::Tts::FragmentVariant
- TelestreamCloud::Tts::Job
- TelestreamCloud::Tts::JobResult
- TelestreamCloud::Tts::JobsCollection
- TelestreamCloud::Tts::Project
- TelestreamCloud::Tts::ProjectsCollection
- TelestreamCloud::Tts::Result
- TelestreamCloud::Tts::UploadSession
- TelestreamCloud::Tts::VideoUploadBody
Documentation for Authorization
apiKey
- Type: API key
- API key parameter name: X-Api-Key
- Location: HTTP header