Skip to content

Repository files navigation

respeecher

API for interacting with Respeecher services, including key and session management, and calibration functionalities.

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 1.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

importrespeecher

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

importrespeecher

Getting Started

Please follow the installation procedure and then run the following:

from __future__ importprint_functionimporttimeimportrespeecherfromrespeecher.restimportApiExceptionfrompprintimportpprint# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
name='name_example'# str | data='data_example'# str | try:
# Create a new Calibrationapi_response=api_instance.create_calibration(name, data)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->create_calibration: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
body=respeecher.FolderRequest() # FolderRequest | try:
# Create a folderapi_response=api_instance.create_folder(body)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->create_folder: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
body=respeecher.NoteRequest() # NoteRequest | try:
# Create a note associated with a recordingapi_response=api_instance.create_note(body)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->create_note: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
body=respeecher.OrderRequest() # OrderRequest | try:
# Create a conversion orderapi_response=api_instance.create_order(body)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->create_order: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_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 recordingapi_response=api_instance.create_original_recording(data, parent_folder_id, microphone, label)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->create_original_recording: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
body=respeecher.ProjectRequest() # ProjectRequest | try:
# Create a new projectapi_response=api_instance.create_project(body)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->create_project: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
body=respeecher.TTSRecordingRequest() # TTSRecordingRequest | try:
# Create an original text-to-speech recordingapi_response=api_instance.create_tts_recording(body)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->create_tts_recording: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
try:
# Delete the API key associated with your accountapi_instance.delete_api_key()
exceptApiExceptionase:
print("Exception when calling DefaultApi->delete_api_key: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
calibration_id='calibration_id_example'# str | try:
# Delete a calibrationapi_response=api_instance.delete_calibration(calibration_id)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->delete_calibration: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
folder_id='folder_id_example'# str | try:
# Delete a folderapi_response=api_instance.delete_folder(folder_id)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->delete_folder: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
body=respeecher.NoteDeleteRequest() # NoteDeleteRequest | try:
# Delete a noteapi_response=api_instance.delete_note(body)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->delete_note: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
project_id='project_id_example'# str | try:
# Delete a projectapi_response=api_instance.delete_project(project_id)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->delete_project: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
recording_id='recording_id_example'# str | The ID of the recording to deletetry:
# Delete a recordingapi_instance.delete_recording(recording_id)
exceptApiExceptionase:
print("Exception when calling DefaultApi->delete_recording: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
calibration_id='calibration_id_example'# str | try:
# Set a calibration as the default enabled calibrationapi_response=api_instance.enable_calibration(calibration_id)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->enable_calibration: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
project_id='project_id_example'# str | starred_only=true# bool | (optional)try:
# Export a projectapi_response=api_instance.export_project(project_id, starred_only=starred_only)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->export_project: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
body=respeecher.FavoriteVoiceIdBody() # FavoriteVoiceIdBody | voice_id='voice_id_example'# str | try:
# Mark a voice as a favoriteapi_response=api_instance.favorite_voice(body, voice_id)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->favorite_voice: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
body=respeecher.ApiApikeyBody() # ApiApikeyBody | try:
# Generate a new API keyapi_response=api_instance.generate_api_key(body)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->generate_api_key: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
accent_id='accent_id_example'# str | try:
# Get samples available for an accentapi_response=api_instance.get_accent_samples(accent_id)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->get_accent_samples: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
try:
# Get the statistics for your accountapi_response=api_instance.get_account_statistics()
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->get_account_statistics: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
calibration_id='calibration_id_example'# str | try:
# Get a calibration by its IDapi_response=api_instance.get_calibration(calibration_id)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->get_calibration: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
try:
# Get the credits available to your accountapi_response=api_instance.get_credits()
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->get_credits: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
folder_id='folder_id_example'# str | try:
# Get a folder by its IDapi_response=api_instance.get_folder_by_id(folder_id)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->get_folder_by_id: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
body=respeecher.FoldersStatisticsRequest() # FoldersStatisticsRequest | try:
# Get statistics for a list of foldersapi_response=api_instance.get_folders_statistics(body)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->get_folders_statistics: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
project_url='project_url_example'# str | try:
# Get a project by its URLapi_response=api_instance.get_project_by_url(project_url)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->get_project_by_url: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_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 projectsapi_response=api_instance.get_projects_statistics(project_ids=project_ids)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->get_projects_statistics: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
recording_id='recording_id_example'# str | The ID of the recording to fetchtry:
# Get a recording by its IDapi_response=api_instance.get_recording_by_id(recording_id)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->get_recording_by_id: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
try:
# Get a list of calibrations associated with your accountapi_response=api_instance.list_calibrations()
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->list_calibrations: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_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 recordingapi_response=api_instance.list_conversions(original_id, limit=limit, offset=offset, direction=direction)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->list_conversions: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_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 projectapi_response=api_instance.list_folders(project_id, limit=limit, offset=offset, direction=direction)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->list_folders: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
try:
# Get a list of the original recordings in a folderapi_response=api_instance.list_original_recordings()
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->list_original_recordings: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_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 projectsapi_response=api_instance.list_projects(limit=limit, offset=offset, sort=sort, direction=direction, owner=owner)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->list_projects: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_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 projectapi_response=api_instance.list_recordings(project_id=project_id, folder_id=folder_id, limit=limit, offset=offset, direction=direction)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->list_recordings: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
try:
# Get a list of the available TTS voicesapi_response=api_instance.list_tts_voices()
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->list_tts_voices: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_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 availableapi_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)
exceptApiExceptionase:
print("Exception when calling DefaultApi->list_voices: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
body=respeecher.ApiLoginBody() # ApiLoginBody | try:
# Log in to an account and start a new sessionapi_response=api_instance.login(body)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->login: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
try:
# End your sessionapi_response=api_instance.logout()
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->logout: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
body=respeecher.FoldersFolderIdBody() # FoldersFolderIdBody | folder_id='folder_id_example'# str | try:
# Rename a folderapi_response=api_instance.rename_folder(body, folder_id)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->rename_folder: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
recording_id='recording_id_example'# str | try:
# Retry a conversion order for a specific originalapi_instance.retry_order_v2(recording_id)
exceptApiExceptionase:
print("Exception when calling DefaultApi->retry_order_v2: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
name='name_example'# str | limit=56# int | (optional)try:
# Search for a voice by its nameapi_response=api_instance.search_voices(name, limit=limit)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->search_voices: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
body=respeecher.VoiceSettingsRequest() # VoiceSettingsRequest | try:
# Set the settings for a voiceapi_response=api_instance.set_voice_settings(body)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->set_voice_settings: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
body=respeecher.NoteRequest() # NoteRequest | try:
# Update a noteapi_response=api_instance.update_note(body)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->update_note: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
body=respeecher.ProjectsProjectIdBody() # ProjectsProjectIdBody | project_id='project_id_example'# str | try:
# Change the name of a projectapi_response=api_instance.update_project(body, project_id)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->update_project: %s\n"%e)
# Configure API key authorization: ApiKeyAuthconfiguration=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: CookieAuthconfiguration=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 classapi_instance=respeecher.DefaultApi(respeecher.ApiClient(configuration))
body=respeecher.RecordingsRecordingIdBody() # RecordingsRecordingIdBody | recording_id='recording_id_example'# str | The ID of the recording to updatetry:
# Update a recordingapi_response=api_instance.update_recording(body, recording_id)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DefaultApi->update_recording: %s\n"%e)

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
DefaultApicreate_calibrationPOST /api/calibrationCreate a new Calibration
DefaultApicreate_folderPOST /api/foldersCreate a folder
DefaultApicreate_notePOST /api/notesCreate a note associated with a recording
DefaultApicreate_orderPOST /api/v2/ordersCreate a conversion order
DefaultApicreate_original_recordingPOST /api/recordingsCreate an original recording
DefaultApicreate_projectPOST /api/projectsCreate a new project
DefaultApicreate_tts_recordingPOST /api/v2/recordings/ttsCreate an original text-to-speech recording
DefaultApidelete_api_keyDELETE /api/api-keyDelete the API key associated with your account
DefaultApidelete_calibrationDELETE /api/calibration/{calibration_id}Delete a calibration
DefaultApidelete_folderDELETE /api/folders/{folder_id}Delete a folder
DefaultApidelete_noteDELETE /api/notesDelete a note
DefaultApidelete_projectDELETE /api/projects/{project_id}Delete a project
DefaultApidelete_recordingDELETE /api/recordings/{recording_id}Delete a recording
DefaultApienable_calibrationPUT /api/calibration/{calibration_id}/enableSet a calibration as the default enabled calibration
DefaultApiexport_projectGET /api/projects/{project_id}/exportExport a project
DefaultApifavorite_voicePOST /api/v2/voices/favorite/{voice_id}Mark a voice as a favorite
DefaultApigenerate_api_keyPOST /api/api-keyGenerate a new API key
DefaultApiget_accent_samplesGET /api/v2/accents/samplesGet samples available for an accent
DefaultApiget_account_statisticsGET /api/statsGet the statistics for your account
DefaultApiget_calibrationGET /api/calibration/{calibration_id}Get a calibration by its ID
DefaultApiget_creditsGET /api/creditsGet the credits available to your account
DefaultApiget_folder_by_idGET /api/folders/{folder_id}Get a folder by its ID
DefaultApiget_folders_statisticsPOST /api/stats/foldersGet statistics for a list of folders
DefaultApiget_project_by_urlGET /api/projects/by-urlGet a project by its URL
DefaultApiget_projects_statisticsGET /api/stats/projectsGet statistics for a list of projects
DefaultApiget_recording_by_idGET /api/recordings/{recording_id}Get a recording by its ID
DefaultApilist_calibrationsGET /api/calibrationGet a list of calibrations associated with your account
DefaultApilist_conversionsGET /api/recordings/conversionsGet a list of the conversions for an original recording
DefaultApilist_foldersGET /api/foldersGet a list of the folders in a project
DefaultApilist_original_recordingsGET /api/recordings/originalsGet a list of the original recordings in a folder
DefaultApilist_projectsGET /api/projectsGet a list of your projects
DefaultApilist_recordingsGET /api/recordingsGet a list of recordings for a specified folder or project
DefaultApilist_tts_voicesGET /api/tts-voicesGet a list of the available TTS voices
DefaultApilist_voicesGET /api/v2/voicesGet a list of the voices available
DefaultApiloginPOST /api/loginLog in to an account and start a new session
DefaultApilogoutPOST /api/logoutEnd your session
DefaultApirename_folderPATCH /api/folders/{folder_id}Rename a folder
DefaultApiretry_order_v2POST /api/v2/orders/retry/{recording_id}Retry a conversion order for a specific original
DefaultApisearch_voicesGET /api/v2/voices/searchSearch for a voice by its name
DefaultApiset_voice_settingsPOST /api/v2/voices/settingsSet the settings for a voice
DefaultApiupdate_notePUT /api/notesUpdate a note
DefaultApiupdate_projectPATCH /api/projects/{project_id}Change the name of a project
DefaultApiupdate_recordingPATCH /api/recordings/{recording_id}Update a recording

Documentation For Models

Documentation For Authorization

ApiKeyAuth

  • Type: API key
  • API key parameter name: api-key
  • Location: HTTP header

CookieAuth

  • Type: API key
  • API key parameter name: X-Csrf-Token
  • Location: HTTP header

Author

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages