Re: [mono-android] How to Initialize text-to-speech for monodroid

2011-12-13 Thread Mark Eaton
Thanks Chris, that worked beautifully :-) ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid

Re: [mono-android] How to Initialize text-to-speech for monodroid

2011-12-13 Thread davthomas
I wonder if it is a good service for us that there is a FAQ or even a forum thread from users summarizes what you cannot do 1:1 porting of java code to monodroid c#. This will also help us to anticipate problems when porting, knowing what have and have not been fixed, and then give the feedbacks b

Re: [mono-android] How to Initialize text-to-speech for monodroid

2011-12-13 Thread Jonathan Pryor
On Dec 13, 2011, at 11:01 AM, davthomas wrote: > Thanks, care to explain. It may help in other java porting to monodroid to > avoid similar problems There was a bug in which parameters of collection types (ICollection, IList, IDictionary, ISet) would trigger a NullReferenceException if the param

Re: [mono-android] How to Initialize text-to-speech for monodroid

2011-12-13 Thread davthomas
Thanks, care to explain. It may help in other java porting to monodroid to avoid similar problems -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/How-to-Initialize-text-to-speech-for-monodroid-tp5069477p5071929.html Sent from the Mono for Android mailing list archi

Re: [mono-android] How to Initialize text-to-speech for monodroid

2011-12-13 Thread ChrisNTR
Hi All, I have created some sample code from this example ( http://developer.android.com/resources/articles/tts.html) and it does run and work on a device: https://gist.github.com/47473a3ced108ce515f7 You might want to replace the "null" in the Speak method with a "new Dictionary()" to get this w

Re: [mono-android] How to Initialize text-to-speech for monodroid

2011-12-13 Thread Mark Eaton
I'm getting the same issue as davthomas. With the same code I am getting a null reference exception thrown when calling the Speak() method. This is using MonoForAndroid_API_10 emulator. I'm looking at getting the paid license but agree with Dave's comment @ 12 Dec 23:39: "I wonder if monodroid

Re: [mono-android] How to Initialize text-to-speech for monodroid

2011-12-12 Thread davthomas
The document section of TextToSpeech for Mono is still empty in a few part, please verify that the TextToSpeech section is working.  Thanks http://androidapi.xamarin.com/?link=T:Android.Speech.Tts.TextToSpeech.IOnInitListener/* From: Jonathan Pryor-2 [via Mono

Re: [mono-android] How to Initialize text-to-speech for monodroid

2011-12-12 Thread davthomas
Dear Jonathan, I have provided the OnInit(int) method                     String myText1 = "Did you sleep well?";                     String myText2 = "I hope so, because it's time to wake up.";                     mTts.Speak(myText1, QueueMode.Flush, null);                     mTts.Speak(myTex

Re: [mono-android] How to Initialize text-to-speech for monodroid

2011-12-12 Thread Jonathan Pryor
On Dec 12, 2011, at 3:32 PM, davthomas wrote: > Monodroid version > > public class TestAct:Activity,TextToSpeech.OnInitListener public class TestAct : Activity, TextToSpeech.IOnInitListener { You'll also need to provide the OnInit(int) method: http://androidapi.xamarin.com/?li

[mono-android] How to Initialize text-to-speech for monodroid

2011-12-12 Thread davthomas
Below is an attempt to port java example code on initializing Text to speech engine. How to do that in monodroid >>> mTts = new TextToSpeech(this, this //TextToSpeech.OnInitListener ); thanks public class TestAct ext