Dogfennaeth API Testun-i-Leferydd

Text-to-Speech API Documentation


Gallwch ychwanegu lleisiau acennog gwrywaidd, benywaidd, gogleddol neu ddeheuol gyda'r API testun-i-leferydd. Mae'r lleisiau'n gallu darllen yn uchel destunau Cymraeg, Saesneg neu gyfnewid cod rhwng y ddwy iaith. Add a male, female, north or south Wales accented voices with our text-to-speech API. Our voices can read aloud both Welsh and English texts.

API Fersiwn 3 (v3) API Version 3 (v3)

Siarad

Speak

https://api.techiaith.cymru/speak/v3/

Paramedr Math Disgrifiad
Field Type Description
text String Y testun i'w lleferu. The text to be spoken.
model Enum ("cy", "cy_en") Default="cy" Y model i defnyddio The model to use
speaker_id 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 to speak

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 to speak

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:

Cookies

Briwsion


We use cookies to improve your experience and enable recording your voice.

Rydym yn defnyddio briwsion i wella eich profiad a galluogi recordio eich llais

Accept & Continue Derbyn a Pharhau

Need to learn more? Privacy & Cookie Policy

Angen dysgu mwy? Preifatrwydd a Pholisi Briwsion