[شرح] Python for Series 60 applications >>> Part 3 (text 2 speech1))
كاتب الموضوع
رسالة
taaz30
المساهمات : 114 تاريخ التسجيل : 28/11/2008
موضوع: [شرح] Python for Series 60 applications >>> Part 3 (text 2 speech1)) السبت ديسمبر 27, 2008 2:16 pm
بسم الله الرحمن الرحيم
اقتباس :
# 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)
الشرح ... هو الكود واضح وبسيط ولكن الإضافة الجديده فقط هى إستخدام audio حيث قمنا بإستدعاء مكتبية audio بالأمر import audio
وبعدين الإدخال ب appuifw.query وتخزين المدخلات من النوع text داخل المتغير text إستخدام دالة say المشتقه من audio لنطق احرف المتغير text !
بس كده
[شرح] Python for Series 60 applications >>> Part 3 (text 2 speech1))