Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #41354
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2013-03-17 07:04 -0700 |
| Message-ID | <287a6f55-279f-4ddf-9020-c61bca585262@googlegroups.com> (permalink) |
| Subject | How to make a Python script to audio read a text file on phone ? |
| From | Nic <nicktwain@gmail.com> |
I've installed Python on my Nokia E71 (Symbian S60 3rd FP1) and found a script example which can read out text, see example below. I want to make the script to asks me for a text file instead and then reads out the content. I guess it works with a .txt file, dont know if other formats work. Regards! [Quote] # Copyright (c) 2006 Jurgen Scheible # This script performs a query with a single-field dialog (text input field) # and lets the phone speak out the text (text to speech) that the users have typed in # NOTE: this script runs only with Python S60 version 3.1.14 or above # NOTE: this script doesn't work on all S60 phones neccessarily. Check your phone model if it has text to speech capability at all import appuifw import audio text = appuifw.query(u"Type a word:", "text") audio.say(text) [End Quote]
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
How to make a Python script to audio read a text file on phone ? Nic <nicktwain@gmail.com> - 2013-03-17 07:04 -0700 Re: How to make a Python script to audio read a text file on phone ? dey.sumit.kr@gmail.com - 2013-03-17 14:48 -0700
csiph-web