Speech Credentials

Get SpeechCredentials

GET /v1/Accounts/{account_sid}/SpeechCredentials

Get all SpeechCredentials linked to your account

AUTHORIZATION - Bearer Token

This document is using Bearer Token from Authentication

PATH VARIABLES

Name

Description

account_sid

Unique identifier for the account

Example request:

curl -X 'GET' \
  'https://api.epacific.net/v1/Accounts/5f8e8f60-4771-44cb-92a6-94ea66df0450/SpeechCredentials' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer 1cf2f4f4-64c4-4249-9a3e-5bb4cb597c2a'

Example response:

[
   {
      "speech_credential_sid": "a9d27e9e-a909-41d1-aef1-bf61e6148e23",
      "account_sid": "5f8e8f60-4771-44cb-92a6-94ea66df0450",
      "vendor": "aws",
      "use_for_tts": 1,
      "use_for_stt": 1,
      "last_used": "2021-05-07T23:48:49.000Z",
      "last_tested": "2021-05-28T16:06:10.000Z",
      "tts_tested_ok": 0,
      "stt_tested_ok": 0,
      "created_at": "2021-05-07T23:19:05.000Z"
   },
   {
      "speech_credential_sid": "ee2f5954-6822-4baf-8039-ae6976394c6d",
      "account_sid": "5f8e8f60-4771-44cb-92a6-94ea66df0450",
      "vendor": "google",
      "use_for_tts": 1,
      "use_for_stt": 1,
      "last_used": "2021-05-25T03:06:49.000Z",
      "last_tested": "2021-05-28T16:06:10.000Z",
      "tts_tested_ok": 1,
      "stt_tested_ok": 1,
      "created_at": "2021-05-07T00:50:11.000Z",
      "service_key": "{\"type\":\"service_account\",\"project_id\":\"inner-lightning-354000\", \"private_key_id\":\"*****\"}"
   }
]

Get SpeechCredential

GET /v1/Accounts/{account_sid}/SpeechCredentials/{speech_credential_sid}

Get a SpeechCredential individually

AUTHORIZATION - Bearer Token

This document is using Bearer Token from Authentication

PATH VARIABLES

Name

Description

account_sid

Unique identifier for the account

credential_sid

Unique identifier for the credential

Example request:

curl -X 'GET' \
  'https://api.epacific.net/v1/Accounts/5f8e8f60-4771-44cb-92a6-94ea66df0450/SpeechCredentials/a9d27e9e-a909-41d1-aef1-bf61e6148e23' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer 1cf2f4f4-64c4-4249-9a3e-5bb4cb597c2a'

Example response:

{
   "speech_credential_sid": "a9d27e9e-a909-41d1-aef1-bf61e6148e23",
   "account_sid": "5f8e8f60-4771-44cb-92a6-94ea66df0450",
   "vendor": "aws",
   "use_for_tts": 1,
   "use_for_stt": 1,
   "last_used": "2021-05-07T23:48:49.000Z",
   "last_tested": "2021-05-28T16:06:10.000Z",
   "tts_tested_ok": 0,
   "stt_tested_ok": 0,
   "created_at": "2021-05-07T23:19:05.000Z",
   "access_key_id": "AKIAXXXXXXXXXXXXXXXXX",
   "secret_access_key": "*******************************"
}

Test SpeechCredential

Verify a SpeechCredential by using it in a basic text-to-speech and/or speech recognition request to the speech service

GET /v1/Accounts/{account_sid}/SpeechCredentials/{speech_credential_sid}/test

AUTHORIZATION - Bearer Token

This document is using Bearer Token from Authentication

PATH VARIABLES

Name

Description

account_sid

Unique identifier for the account

credential_sid

Unique identifier for the credential

Example request:

curl -X 'GET' \
  'https://api.epacific.net/v1/Accounts/5f8e8f60-4771-44cb-92a6-94ea66df0450/SpeechCredentials/a9d27e9e-a909-41d1-aef1-bf61e6148e23/test' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer 1cf2f4f4-64c4-4249-9a3e-5bb4cb597c2a'

Example response:

{
   "tts": {
      "status": "ok"
   },
   "stt": {
      "status": "ok"
   }
}

Create SpeechCredentials

POST /v1/Accounts/{account_sid}/SpeechCredentials

Create a SpeechCredentials

AUTHORIZATION - Bearer Token

This document is using Bearer Token from Authentication

PATH VARIABLES

Name

Description

account_sid

Unique identifier for the account

Example request:

curl -X 'POST' \
  'https://api.epacific.net/v1/Accounts/5f8e8f60-4771-44cb-92a6-94ea66df0450/SpeechCredentials' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer 1cf2f4f4-64c4-4249-9a3e-5bb4cb597c2a' \
  -H 'Content-Type: application/json' \
  -d '{
  "vendor": "aws",
  "access_key_id": "AKIXXXXXXXXXXXXX",
  "secret_access_key": "****************************",
  "vne_for_tts": true,
  "vne_for_stt": true,
  "aws_region": "asia-tokyo"
  }'

Example response:

{
   "sid": "49d36fb5-ac01-4e7a-ad8a-824033381afd"
}

Delete SpeechCredential

DELETE /v1/Accounts/{account_sid}/SpeechCredentials/{speech_credential_sid}

Deletes a SpeechCredential

AUTHORIZATION - Bearer Token

This document is using Bearer Token from Authentication

PATH VARIABLES

Name

Description

account_sid

Unique identifier for the account

credential_sid

Unique identifier for the credential

Example request:

curl -X 'DELETE' \
  'https://api.epacific.net/v1/Accounts/5f8e8f60-4771-44cb-92a6-94ea66df0450/SpeechCredentials/a9d27e9e-a909-41d1-aef1-bf61e6148e23' \
  -H 'accept: text/plain' \
  -H 'Authorization: Bearer 1cf2f4f4-64c4-4249-9a3e-5bb4cb597c2a'

Example response:

Success is indicated by a 204 response


Please contact us for timely support via: