MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=wikispeech-listen
(main | wikispeech-listen)
- This module requires read rights.
 - Source: Wikispeech
 - License: GPL-2.0-or-later
 
Synthesize speech.
Specific parameters:
Other general parameters are available.
- lang
 Language code.
- This parameter is required.
 - text
 Text to synthesize.
- ipa
 IPA string to synthesize.
- revision
 Page revision on which the segment is found.
- Type: integer
 - segment
 Hash of the segment synthesize.
- voice
 Voice to use. If not provided the default voice for the language will be used.
- consumer-url
 URL to the consumer wiki's script path.
- skip-journal-metrics
 Defaults to false. If true, anonymous data will not be stored in journal metrics log. Primarily used when executing pre rendering to avoid adding robot requests to statistics.
- Type: boolean (details)
 
Examples:
- Synthesize an utterance in English.
 - api.php?action=wikispeech-listen&format=json&lang=en&text=Read this [open in sandbox]
 - Use a non-default voice.
 - api.php?action=wikispeech-listen&format=json&lang=en&text=Read this&voice=cmu-slt-hsmm [open in sandbox]
 - Request a segment from a revision. Will use cached synthesis if it exists.
 - api.php?action=wikispeech-listen&format=json&lang=en&revision=1&segment=hash1234 [open in sandbox]
 - Synthesize an utterance from another wiki.
 - api.php?action=wikispeech-listen&format=json&lang=en&revision=1&segment=hash1234&consumer-url=https://consumer.url/w [open in sandbox]