translate
Converts spoken audio from a local file or YouTube link into written text in another language, using source and target language settings; one language must be English.
Instructions
Write the speech in one audio file, or one YouTube link, in another language. source_language is the language spoken in the file, such as Polish or pl. target_language is the language the words should be written in, such as English or en. Pass both when you know them. A language passed here overrides NEMOTRON_SOURCE_LANGUAGE and NEMOTRON_TARGET_LANGUAGE. If source_language is empty, the language heard in the file overrides NEMOTRON_SOURCE_LANGUAGE. Leave target_language empty to use NEMOTRON_TARGET_LANGUAGE. One of the two languages must be English. A long file is cut at a pause and sent one piece at a time. Waits wait_seconds (default 25). If it is still running, returns a job id. Tell the user, then call get_job_status. Do not poll in a loop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| wait_seconds | No | ||
| source_language | No | ||
| target_language | No |