Dogfennaeth API Testun-i-Leferydd
Text-to-Speech API Documentation
Wedi Diweddaru: Last Updated: 11 MawMar 2024
API Fersiwn 3 (v3) API Version 3 (v3)
Siarad
Speak
https://api.techiaith.cymru/speak/v3/
Paramedr | Math | Disgrifiad | |
---|---|---|---|
api_key | String (Optional, default="") | Eich tocyn API. | Your API key. |
testun | String | Y testun i'w lleferu. | The text to be spoken. |
siaradwr | Enum (Optional - "benyw-gogledd-pro", "benyw-de-pro", "gwryw-gogledd-pro") Default="gwryw-gogledd-pro" | Enw'r llais synthetig i'w ddefnyddio | Name of the synthetic voice |
Enghraifft:
Example:
curl "https://api.techiaith.cymru/speak/v3/?testun=nawr+bod+gen+i+lais,+dwi+i+ddim+yn+mynd+i'w+golli&siaradwr&api_key" -o speechv3.wav
Canlyniad Enghreifftiol:
Example Result:
API Fersiwn 2 (v2) API Version 2 (v2)
Siarad
Speak
https://api.techiaith.cymru/speak/v2/
Paramedr | Math | Disgrifiad | |
---|---|---|---|
Field | Type | Description | |
text | String | Y testun i'w lefaru | Text for converting into speech |
Enghraifft:
Example:
curl "https://api.techiaith.cymru/speak/v2/?text=mae+hen+wlad+fy+nhadau+yn+annwyl+i+mi" -o speechv2.wav
Canlyniad Enghreifftiol:
Example Result:
API Fersiwn 1 (v1) API Version 1 (v1)
Siarad
Speak
https://api.techiaith.cymru/speak/v1/
Paramedr | Math | Disgrifiad | |
---|---|---|---|
Field | Type | Description | |
text | String | Y testun i'w lefaru | Text for converting into speech |
Enghraifft:
Example:
curl "https://api.techiaith.cymru/speak/v1/?text=mae+hen+wlad+fy+nhadau+yn+annwyl+i+mi" -o speechv1.wav
Canlyniad Enghreifftiol:
Example Result: