Machine Translation converts text from one language to another. This is useful for any context that requires two languages.

Request

The translate() function can be used to transcribe audio. Pass a text, source and target languages. Examples are provided below as a guide for you.

Best Practices for Use

Context matters for many languages, so translations can differ based on wording and usage.

Language Support

Our speech-to-text model supports the following languages:
  • Hausa: ha
  • Igbo: ig
  • Yoruba: yo
  • English: en
More info on languages can be found on the Languages page
Python
from spitch import Spitch

client = Spitch()
translation = client.text.translate(
    text="Hey my dear friend, how are you doing?",
    source="en",
    target="ha",
)
print(translation.text)