×
Namespaces

Variants
Actions
(Redirected from Text to speech in PySymbian)

Archived:Text to speech in PySymbian

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngAquivado: Este artigo foi arquivado, pois o conteúdo não é mais considerado relevante para se criar soluções comerciais atuais. Se você achar que este artigo ainda é importante, inclua o template {{ForArchiveReview|escreva a sua justificativa}}.

All PySymbian articles have been archived. PySymbian is no longer maintained by Nokia and is not guaranteed to work on more recent Symbian devices. It is not possible to submit apps to Nokia Store.


Article Metadata
Tested with
Devices(s): Nokia N95, Nokia E90
Compatibility
Platform(s): S60 2nd Edition FP3, S60 3rd Edition
Article
Keywords: audio
Created: bogdan.galiceanu (26 Nov 2007)
Last edited: hamishwillee (31 May 2013)

Contents

Overview

This snippet shows how to use text to speech in Python.

Preconditions

This method is available from S60 2nd Edition FP3 (inclusive).

The parameter passed to the say() function should be either Unicode or a UTF-8 encoded plain string.

The speech synthesizer pronounces the text according to the current device language.

Source code

import audio
 
 
audio.say("This is an example of text to speech")

Postconditions

The text is converted to speech and played aloud by the device.

Observations

  • This method does not work on the emulator.
  • Numbers are read digit by digit.
This page was last modified on 31 May 2013, at 04:10.
52 page views in the last 30 days.