mail-archives/monodroid/2011-December/007784.html

94 строки
2.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [mono-android] How to Initialize text-to-speech for monodroid
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20How%20to%20Initialize%20text-to-speech%20for%20monodroid&In-Reply-To=1323792077798-5071929.post%40n5.nabble.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="007782.html">
<LINK REL="Next" HREF="007788.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[mono-android] How to Initialize text-to-speech for monodroid</H1>
<B>Jonathan Pryor</B>
<A HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20How%20to%20Initialize%20text-to-speech%20for%20monodroid&In-Reply-To=1323792077798-5071929.post%40n5.nabble.com"
TITLE="[mono-android] How to Initialize text-to-speech for monodroid">jonp at xamarin.com
</A><BR>
<I>Tue Dec 13 12:05:26 EST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="007782.html">[mono-android] How to Initialize text-to-speech for monodroid
</A></li>
<LI>Next message: <A HREF="007788.html">[mono-android] How to Initialize text-to-speech for monodroid
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7784">[ date ]</a>
<a href="thread.html#7784">[ thread ]</a>
<a href="subject.html#7784">[ subject ]</a>
<a href="author.html#7784">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On Dec 13, 2011, at 11:01 AM, davthomas wrote:
&gt;<i> Thanks, care to explain. It may help in other java porting to monodroid to avoid similar problems
</I>
There was a bug in which parameters of collection types (ICollection, IList, IDictionary, ISet) would trigger a NullReferenceException if the parameter was null. For example, this fails:
mTts.Speak(myText1, QueueMode.Add, null);
while this works:
mTts.Speak(myText1, QueueMode.Add, new Dictionary&lt;string, string&gt;());
This will be fixed after the next release.
- Jon
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="007782.html">[mono-android] How to Initialize text-to-speech for monodroid
</A></li>
<LI>Next message: <A HREF="007788.html">[mono-android] How to Initialize text-to-speech for monodroid
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7784">[ date ]</a>
<a href="thread.html#7784">[ thread ]</a>
<a href="subject.html#7784">[ subject ]</a>
<a href="author.html#7784">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/monodroid">More information about the Monodroid
mailing list</a><br>
</body></html>