Skip to content

Latest commit

 

History

History
2538 lines (1896 loc) · 84.4 KB

DefaultApi.md

File metadata and controls

2538 lines (1896 loc) · 84.4 KB

respeecher.DefaultApi

All URIs are relative to https://api.respeecher.com

Method HTTP request Description
create_calibration POST /api/calibration Create a new Calibration
create_folder POST /api/folders Create a folder
create_note POST /api/notes Create a note associated with a recording
create_order POST /api/v2/orders Create a conversion order
create_original_recording POST /api/recordings Create an original recording
create_project POST /api/projects Create a new project
create_tts_recording POST /api/v2/recordings/tts Create an original text-to-speech recording
delete_api_key DELETE /api/api-key Delete the API key associated with your account
delete_calibration DELETE /api/calibration/{calibration_id} Delete a calibration
delete_folder DELETE /api/folders/{folder_id} Delete a folder
delete_note DELETE /api/notes Delete a note
delete_project DELETE /api/projects/{project_id} Delete a project
delete_recording DELETE /api/recordings/{recording_id} Delete a recording
enable_calibration PUT /api/calibration/{calibration_id}/enable Set a calibration as the default enabled calibration
export_project GET /api/projects/{project_id}/export Export a project
favorite_voice POST /api/v2/voices/favorite/{voice_id} Mark a voice as a favorite
generate_api_key POST /api/api-key Generate a new API key
get_accent_samples GET /api/v2/accents/samples Get samples available for an accent
get_account_statistics GET /api/stats Get the statistics for your account
get_calibration GET /api/calibration/{calibration_id} Get a calibration by its ID
get_credits GET /api/credits Get the credits available to your account
get_folder_by_id GET /api/folders/{folder_id} Get a folder by its ID
get_folders_statistics POST /api/stats/folders Get statistics for a list of folders
get_project_by_url GET /api/projects/by-url Get a project by its URL
get_projects_statistics GET /api/stats/projects Get statistics for a list of projects
get_recording_by_id GET /api/recordings/{recording_id} Get a recording by its ID
list_calibrations GET /api/calibration Get a list of calibrations associated with your account
list_conversions GET /api/recordings/conversions Get a list of the conversions for an original recording
list_folders GET /api/folders Get a list of the folders in a project
list_original_recordings GET /api/recordings/originals Get a list of the original recordings in a folder
list_projects GET /api/projects Get a list of your projects
list_recordings GET /api/recordings Get a list of recordings for a specified folder or project
list_tts_voices GET /api/tts-voices Get a list of the available TTS voices
list_voices GET /api/v2/voices Get a list of the voices available
login POST /api/login Log in to an account and start a new session
logout POST /api/logout End your session
rename_folder PATCH /api/folders/{folder_id} Rename a folder
retry_order_v2 POST /api/v2/orders/retry/{recording_id} Retry a conversion order for a specific original
search_voices GET /api/v2/voices/search Search for a voice by its name
set_voice_settings POST /api/v2/voices/settings Set the settings for a voice
update_note PUT /api/notes Update a note
update_project PATCH /api/projects/{project_id} Change the name of a project
update_recording PATCH /api/recordings/{recording_id} Update a recording

create_calibration

CalibrationResponse create_calibration(name, data)

Create a new Calibration

Currently the supported audio formats are wav, ogg, mp3 or flac.

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
name = 'name_example' # str | 
data = 'data_example' # str | 

try:
    # Create a new Calibration
    api_response = api_instance.create_calibration(name, data)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->create_calibration: %s\n" % e)

Parameters

Name Type Description Notes
name str
data str

Return type

CalibrationResponse

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

create_folder

Folder create_folder(body)

Create a folder

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
body = respeecher.FolderRequest() # FolderRequest | 

try:
    # Create a folder
    api_response = api_instance.create_folder(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->create_folder: %s\n" % e)

Parameters

Name Type Description Notes
body FolderRequest

Return type

Folder

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

create_note

NoteResponse create_note(body)

Create a note associated with a recording

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
body = respeecher.NoteRequest() # NoteRequest | 

try:
    # Create a note associated with a recording
    api_response = api_instance.create_note(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->create_note: %s\n" % e)

Parameters

Name Type Description Notes
body NoteRequest

Return type

NoteResponse

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

create_order

list[Order] create_order(body)

Create a conversion order

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
body = respeecher.OrderRequest() # OrderRequest | 

try:
    # Create a conversion order
    api_response = api_instance.create_order(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->create_order: %s\n" % e)

Parameters

Name Type Description Notes
body OrderRequest

Return type

list[Order]

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

create_original_recording

Recording create_original_recording(data, parent_folder_id, microphone, label)

Create an original recording

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
data = 'data_example' # str | 
parent_folder_id = 'parent_folder_id_example' # str | 
microphone = 'microphone_example' # str | 
label = 'label_example' # str | 

try:
    # Create an original recording
    api_response = api_instance.create_original_recording(data, parent_folder_id, microphone, label)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->create_original_recording: %s\n" % e)

Parameters

Name Type Description Notes
data str
parent_folder_id str
microphone str
label str

Return type

Recording

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

create_project

ProjectResponse create_project(body)

Create a new project

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
body = respeecher.ProjectRequest() # ProjectRequest | 

try:
    # Create a new project
    api_response = api_instance.create_project(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->create_project: %s\n" % e)

Parameters

Name Type Description Notes
body ProjectRequest

Return type

ProjectResponse

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

create_tts_recording

Recording create_tts_recording(body)

Create an original text-to-speech recording

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
body = respeecher.TTSRecordingRequest() # TTSRecordingRequest | 

try:
    # Create an original text-to-speech recording
    api_response = api_instance.create_tts_recording(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->create_tts_recording: %s\n" % e)

Parameters

Name Type Description Notes
body TTSRecordingRequest

Return type

Recording

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

delete_api_key

delete_api_key()

Delete the API key associated with your account

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))

try:
    # Delete the API key associated with your account
    api_instance.delete_api_key()
except ApiException as e:
    print("Exception when calling DefaultApi->delete_api_key: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

delete_calibration

CalibrationResponse delete_calibration(calibration_id)

Delete a calibration

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
calibration_id = 'calibration_id_example' # str | 

try:
    # Delete a calibration
    api_response = api_instance.delete_calibration(calibration_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->delete_calibration: %s\n" % e)

Parameters

Name Type Description Notes
calibration_id str

Return type

CalibrationResponse

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

delete_folder

list[InlineResponse2004] delete_folder(folder_id)

Delete a folder

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
folder_id = 'folder_id_example' # str | 

try:
    # Delete a folder
    api_response = api_instance.delete_folder(folder_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->delete_folder: %s\n" % e)

Parameters

Name Type Description Notes
folder_id str

Return type

list[InlineResponse2004]

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

delete_note

NoteResponse delete_note(body)

Delete a note

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
body = respeecher.NoteDeleteRequest() # NoteDeleteRequest | 

try:
    # Delete a note
    api_response = api_instance.delete_note(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->delete_note: %s\n" % e)

Parameters

Name Type Description Notes
body NoteDeleteRequest

Return type

NoteResponse

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

delete_project

InlineResponse2004 delete_project(project_id)

Delete a project

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
project_id = 'project_id_example' # str | 

try:
    # Delete a project
    api_response = api_instance.delete_project(project_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->delete_project: %s\n" % e)

Parameters

Name Type Description Notes
project_id str

Return type

InlineResponse2004

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

delete_recording

delete_recording(recording_id)

Delete a recording

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
recording_id = 'recording_id_example' # str | The ID of the recording to delete

try:
    # Delete a recording
    api_instance.delete_recording(recording_id)
except ApiException as e:
    print("Exception when calling DefaultApi->delete_recording: %s\n" % e)

Parameters

Name Type Description Notes
recording_id str The ID of the recording to delete

Return type

void (empty response body)

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

enable_calibration

list[CalibrationResponse] enable_calibration(calibration_id)

Set a calibration as the default enabled calibration

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
calibration_id = 'calibration_id_example' # str | 

try:
    # Set a calibration as the default enabled calibration
    api_response = api_instance.enable_calibration(calibration_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->enable_calibration: %s\n" % e)

Parameters

Name Type Description Notes
calibration_id str

Return type

list[CalibrationResponse]

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

export_project

str export_project(project_id, starred_only=starred_only)

Export a project

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
project_id = 'project_id_example' # str | 
starred_only = true # bool |  (optional)

try:
    # Export a project
    api_response = api_instance.export_project(project_id, starred_only=starred_only)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->export_project: %s\n" % e)

Parameters

Name Type Description Notes
project_id str
starred_only bool [optional]

Return type

str

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/zip

[Back to top] [Back to API list] [Back to Model list] [Back to README]

favorite_voice

Voice favorite_voice(body, voice_id)

Mark a voice as a favorite

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
body = respeecher.FavoriteVoiceIdBody() # FavoriteVoiceIdBody | 
voice_id = 'voice_id_example' # str | 

try:
    # Mark a voice as a favorite
    api_response = api_instance.favorite_voice(body, voice_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->favorite_voice: %s\n" % e)

Parameters

Name Type Description Notes
body FavoriteVoiceIdBody
voice_id str

Return type

Voice

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

generate_api_key

InlineResponse200 generate_api_key(body)

Generate a new API key

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
body = respeecher.ApiApikeyBody() # ApiApikeyBody | 

try:
    # Generate a new API key
    api_response = api_instance.generate_api_key(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->generate_api_key: %s\n" % e)

Parameters

Name Type Description Notes
body ApiApikeyBody

Return type

InlineResponse200

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_accent_samples

AccentSamplesResponse get_accent_samples(accent_id)

Get samples available for an accent

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
accent_id = 'accent_id_example' # str | 

try:
    # Get samples available for an accent
    api_response = api_instance.get_accent_samples(accent_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->get_accent_samples: %s\n" % e)

Parameters

Name Type Description Notes
accent_id str

Return type

AccentSamplesResponse

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_account_statistics

AccountStatistics get_account_statistics()

Get the statistics for your account

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))

try:
    # Get the statistics for your account
    api_response = api_instance.get_account_statistics()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->get_account_statistics: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

AccountStatistics

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_calibration

CalibrationResponse get_calibration(calibration_id)

Get a calibration by its ID

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
calibration_id = 'calibration_id_example' # str | 

try:
    # Get a calibration by its ID
    api_response = api_instance.get_calibration(calibration_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->get_calibration: %s\n" % e)

Parameters

Name Type Description Notes
calibration_id str

Return type

CalibrationResponse

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_credits

InlineResponse2003 get_credits()

Get the credits available to your account

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))

try:
    # Get the credits available to your account
    api_response = api_instance.get_credits()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->get_credits: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

InlineResponse2003

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_folder_by_id

Folder get_folder_by_id(folder_id)

Get a folder by its ID

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
folder_id = 'folder_id_example' # str | 

try:
    # Get a folder by its ID
    api_response = api_instance.get_folder_by_id(folder_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->get_folder_by_id: %s\n" % e)

Parameters

Name Type Description Notes
folder_id str

Return type

Folder

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_folders_statistics

FoldersStatisticsResponse get_folders_statistics(body)

Get statistics for a list of folders

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
body = respeecher.FoldersStatisticsRequest() # FoldersStatisticsRequest | 

try:
    # Get statistics for a list of folders
    api_response = api_instance.get_folders_statistics(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->get_folders_statistics: %s\n" % e)

Parameters

Name Type Description Notes
body FoldersStatisticsRequest

Return type

FoldersStatisticsResponse

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_project_by_url

ProjectResponse get_project_by_url(project_url)

Get a project by its URL

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
project_url = 'project_url_example' # str | 

try:
    # Get a project by its URL
    api_response = api_instance.get_project_by_url(project_url)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->get_project_by_url: %s\n" % e)

Parameters

Name Type Description Notes
project_url str

Return type

ProjectResponse

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_projects_statistics

list[ProjectsStatisticsResponse] get_projects_statistics(project_ids=project_ids)

Get statistics for a list of projects

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
project_ids = 'project_ids_example' # str | Comma-separated list of project IDs to fetch statistics for. (optional)

try:
    # Get statistics for a list of projects
    api_response = api_instance.get_projects_statistics(project_ids=project_ids)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->get_projects_statistics: %s\n" % e)

Parameters

Name Type Description Notes
project_ids str Comma-separated list of project IDs to fetch statistics for. [optional]

Return type

list[ProjectsStatisticsResponse]

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_recording_by_id

Recording get_recording_by_id(recording_id)

Get a recording by its ID

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
recording_id = 'recording_id_example' # str | The ID of the recording to fetch

try:
    # Get a recording by its ID
    api_response = api_instance.get_recording_by_id(recording_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->get_recording_by_id: %s\n" % e)

Parameters

Name Type Description Notes
recording_id str The ID of the recording to fetch

Return type

Recording

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_calibrations

list[CalibrationResponse] list_calibrations()

Get a list of calibrations associated with your account

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))

try:
    # Get a list of calibrations associated with your account
    api_response = api_instance.list_calibrations()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->list_calibrations: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

list[CalibrationResponse]

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_conversions

RecordingListResponse list_conversions(original_id, limit=limit, offset=offset, direction=direction)

Get a list of the conversions for an original recording

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
original_id = 'original_id_example' # str | 
limit = 56 # int |  (optional)
offset = 56 # int |  (optional)
direction = 'direction_example' # str |  (optional)

try:
    # Get a list of the conversions for an original recording
    api_response = api_instance.list_conversions(original_id, limit=limit, offset=offset, direction=direction)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->list_conversions: %s\n" % e)

Parameters

Name Type Description Notes
original_id str
limit int [optional]
offset int [optional]
direction str [optional]

Return type

RecordingListResponse

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_folders

FolderListResponse list_folders(project_id, limit=limit, offset=offset, direction=direction)

Get a list of the folders in a project

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
project_id = 'project_id_example' # str | 
limit = 56 # int |  (optional)
offset = 56 # int |  (optional)
direction = 'direction_example' # str |  (optional)

try:
    # Get a list of the folders in a project
    api_response = api_instance.list_folders(project_id, limit=limit, offset=offset, direction=direction)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->list_folders: %s\n" % e)

Parameters

Name Type Description Notes
project_id str
limit int [optional]
offset int [optional]
direction str [optional]

Return type

FolderListResponse

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_original_recordings

RecordingListResponse list_original_recordings()

Get a list of the original recordings in a folder

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))

try:
    # Get a list of the original recordings in a folder
    api_response = api_instance.list_original_recordings()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->list_original_recordings: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

RecordingListResponse

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_projects

ProjectListResponse list_projects(limit=limit, offset=offset, sort=sort, direction=direction, owner=owner)

Get a list of your projects

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
limit = 56 # int | The maximum number of projects to list. (optional)
offset = 56 # int | The number of projects to offset the list by. (optional)
sort = 'sort_example' # str | Sort by name, created_at or last_recording_at. (optional)
direction = 'direction_example' # str | Order projects by asc or desc. (optional)
owner = 'owner_example' # str | List projects for a specific owner ID. (optional)

try:
    # Get a list of your projects
    api_response = api_instance.list_projects(limit=limit, offset=offset, sort=sort, direction=direction, owner=owner)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->list_projects: %s\n" % e)

Parameters

Name Type Description Notes
limit int The maximum number of projects to list. [optional]
offset int The number of projects to offset the list by. [optional]
sort str Sort by name, created_at or last_recording_at. [optional]
direction str Order projects by asc or desc. [optional]
owner str List projects for a specific owner ID. [optional]

Return type

ProjectListResponse

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_recordings

RecordingListResponse list_recordings(project_id=project_id, folder_id=folder_id, limit=limit, offset=offset, direction=direction)

Get a list of recordings for a specified folder or project

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
project_id = 'project_id_example' # str |  (optional)
folder_id = 'folder_id_example' # str |  (optional)
limit = 56 # int |  (optional)
offset = 56 # int |  (optional)
direction = 'direction_example' # str |  (optional)

try:
    # Get a list of recordings for a specified folder or project
    api_response = api_instance.list_recordings(project_id=project_id, folder_id=folder_id, limit=limit, offset=offset, direction=direction)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->list_recordings: %s\n" % e)

Parameters

Name Type Description Notes
project_id str [optional]
folder_id str [optional]
limit int [optional]
offset int [optional]
direction str [optional]

Return type

RecordingListResponse

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_tts_voices

list[TTSVoice] list_tts_voices()

Get a list of the available TTS voices

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))

try:
    # Get a list of the available TTS voices
    api_response = api_instance.list_tts_voices()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->list_tts_voices: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

list[TTSVoice]

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_voices

VoicesListResponse list_voices(limit=limit, offset=offset, sort=sort, direction=direction, visibility=visibility, species=species, gender=gender, age_group=age_group, pitch_group=pitch_group, nationality=nationality)

Get a list of the voices available

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
limit = 25 # int | Limits the number of voices returned in the response. Defaults to 25. (optional) (default to 25)
offset = 0 # int | Offsets the list of voices to paginate through results. Defaults to 0. (optional) (default to 0)
sort = 'sort_example' # str | Sorts the voices by a specified attribute (e.g., name, pitch, rating, or created_at). (optional)
direction = 'direction_example' # str | Specifies the direction of sorting. Can be 'asc' for ascending or 'desc' for descending. (optional)
visibility = 'visibility_example' # str | Filters voices by their visibility status (e.g., public, paid, private, or kids). (optional)
species = 'species_example' # str | Filters voices by species category (e.g., human, animal, or other). (optional)
gender = 'gender_example' # str | Filters voices by gender (e.g., male or female). (optional)
age_group = 'age_group_example' # str | Filters voices by age group (e.g., child, young, adult, or senior). (optional)
pitch_group = 'pitch_group_example' # str | Filters voices by pitch group (e.g., low, mid, or high). (optional)
nationality = 'nationality_example' # str | Filters voices by nationality. (optional)

try:
    # Get a list of the voices available
    api_response = api_instance.list_voices(limit=limit, offset=offset, sort=sort, direction=direction, visibility=visibility, species=species, gender=gender, age_group=age_group, pitch_group=pitch_group, nationality=nationality)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->list_voices: %s\n" % e)

Parameters

Name Type Description Notes
limit int Limits the number of voices returned in the response. Defaults to 25. [optional] [default to 25]
offset int Offsets the list of voices to paginate through results. Defaults to 0. [optional] [default to 0]
sort str Sorts the voices by a specified attribute (e.g., name, pitch, rating, or created_at). [optional]
direction str Specifies the direction of sorting. Can be 'asc' for ascending or 'desc' for descending. [optional]
visibility str Filters voices by their visibility status (e.g., public, paid, private, or kids). [optional]
species str Filters voices by species category (e.g., human, animal, or other). [optional]
gender str Filters voices by gender (e.g., male or female). [optional]
age_group str Filters voices by age group (e.g., child, young, adult, or senior). [optional]
pitch_group str Filters voices by pitch group (e.g., low, mid, or high). [optional]
nationality str Filters voices by nationality. [optional]

Return type

VoicesListResponse

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

login

InlineResponse2001 login(body)

Log in to an account and start a new session

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
body = respeecher.ApiLoginBody() # ApiLoginBody | 

try:
    # Log in to an account and start a new session
    api_response = api_instance.login(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->login: %s\n" % e)

Parameters

Name Type Description Notes
body ApiLoginBody

Return type

InlineResponse2001

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

logout

InlineResponse2002 logout()

End your session

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))

try:
    # End your session
    api_response = api_instance.logout()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->logout: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

InlineResponse2002

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

rename_folder

Folder rename_folder(body, folder_id)

Rename a folder

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
body = respeecher.FoldersFolderIdBody() # FoldersFolderIdBody | 
folder_id = 'folder_id_example' # str | 

try:
    # Rename a folder
    api_response = api_instance.rename_folder(body, folder_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->rename_folder: %s\n" % e)

Parameters

Name Type Description Notes
body FoldersFolderIdBody
folder_id str

Return type

Folder

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

retry_order_v2

retry_order_v2(recording_id)

Retry a conversion order for a specific original

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
recording_id = 'recording_id_example' # str | 

try:
    # Retry a conversion order for a specific original
    api_instance.retry_order_v2(recording_id)
except ApiException as e:
    print("Exception when calling DefaultApi->retry_order_v2: %s\n" % e)

Parameters

Name Type Description Notes
recording_id str

Return type

void (empty response body)

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

search_voices

list[Voice] search_voices(name, limit=limit)

Search for a voice by its name

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
name = 'name_example' # str | 
limit = 56 # int |  (optional)

try:
    # Search for a voice by its name
    api_response = api_instance.search_voices(name, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->search_voices: %s\n" % e)

Parameters

Name Type Description Notes
name str
limit int [optional]

Return type

list[Voice]

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

set_voice_settings

Voice set_voice_settings(body)

Set the settings for a voice

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
body = respeecher.VoiceSettingsRequest() # VoiceSettingsRequest | 

try:
    # Set the settings for a voice
    api_response = api_instance.set_voice_settings(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->set_voice_settings: %s\n" % e)

Parameters

Name Type Description Notes
body VoiceSettingsRequest

Return type

Voice

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

update_note

NoteResponse update_note(body)

Update a note

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
body = respeecher.NoteRequest() # NoteRequest | 

try:
    # Update a note
    api_response = api_instance.update_note(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->update_note: %s\n" % e)

Parameters

Name Type Description Notes
body NoteRequest

Return type

NoteResponse

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

update_project

ProjectResponse update_project(body, project_id)

Change the name of a project

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
body = respeecher.ProjectsProjectIdBody() # ProjectsProjectIdBody | 
project_id = 'project_id_example' # str | 

try:
    # Change the name of a project
    api_response = api_instance.update_project(body, project_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->update_project: %s\n" % e)

Parameters

Name Type Description Notes
body ProjectsProjectIdBody
project_id str

Return type

ProjectResponse

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

update_recording

Recording update_recording(body, recording_id)

Update a recording

Example

from __future__ import print_function
import time
import respeecher
from respeecher.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = respeecher.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: CookieAuth
configuration = respeecher.Configuration()
configuration.api_key['X-Csrf-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Csrf-Token'] = 'Bearer'

# create an instance of the API class
api_instance = respeecher.DefaultApi(respeecher.ApiClient(configuration))
body = respeecher.RecordingsRecordingIdBody() # RecordingsRecordingIdBody | 
recording_id = 'recording_id_example' # str | The ID of the recording to update

try:
    # Update a recording
    api_response = api_instance.update_recording(body, recording_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->update_recording: %s\n" % e)

Parameters

Name Type Description Notes
body RecordingsRecordingIdBody
recording_id str The ID of the recording to update

Return type

Recording

Authorization

ApiKeyAuth, CookieAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]