Skip to main content
POST
/
api
/
v1
/
pronunciations
/
csv
Python (SDK)
import os
from syllable_sdk import SyllableSDK


with SyllableSDK(
    api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:

    res = ss_client.pronunciations.pronunciations_upload_csv(request={
        "file": {
            "file_name": "example.file",
            "content": open("example.file", "rb"),
        },
    })

    # Handle response
    print(res)
{
  "revision": 123,
  "hash": "<string>",
  "entries": 123,
  "uploaded_at": "2023-11-07T05:31:56Z",
  "uploaded_by": "<string>"
}

Authorizations

Syllable-API-Key
string
header
required

Body

multipart/form-data
file
file
required

CSV file containing pronunciation overrides

Response

Successful Response

Placeholder response returned after accepting a pronunciations CSV upload.

revision
integer
required
hash
string | null
entries
integer | null
uploaded_at
string<date-time>
uploaded_by
string | null
I