Hi, Are those VSSpeechSynthesizer* classes in a bindings project or in your main MonoTouch project? (they need to be in a bindings project)
Rolf On Tue, Jan 22, 2013 at 4:58 AM, alexgcuesoft <[email protected]>wrote: > Rolf; > > Thanks so much for the help!...I think I see where you're going with this. > > Unfortunately, I'm now getting the errors: > 2013-01-21 20:49:37.145 BuildingNaviOS[10049:907] *** NSForwarding: > warning: > object 0x4183570 of class 'BuildingNavigator.Common.AmeSpeechDelegate' does > not implement methodSignatureForSelector: -- trouble ahead > 2013-01-21 20:49:37.147 BuildingNaviOS[10049:907] *** NSForwarding: > warning: > object 0x4183570 of class 'BuildingNavigator.Common.AmeSpeechDelegate' does > not implement doesNotRecognizeSelector: -- abort > > which I don't quite understand since my delegate is of base type > NSObject... > > [BaseType(typeof(NSObject))] > public interface VSSpeechSynthesizer > { > [Static, Export("isSystemSpeaking")] > bool IsSystemSpeaking { get; } > > [Export("rate")] > float Rate(); > > [Export("setRate:")] > void SetRate(float rate); > > [Export("pitch")] > float Pitch(); > > [Export("setPitch:")] > void SetPitch(float pitch); > > [Export("volume")] > float Volume(); > > [Export("setVolume:")] > void SetVolume(float volume); > > [Export("startSpeakingString:")] > void StartSpeakingString([NullAllowed]string text); > > [Export("stopSpeaking")] > void StopSpeaking(); > > [Export ("delegate"), NullAllowed] > NSObject WeakDelegate { get; set; } > > } > > [BaseType(typeof(NSObject))] > public interface VSSpeechSynthesizerDelegate > { > [Export("speechSynthesizer:didFinishSpeaking:withError:")] > void DidFinishSpeaking(NSObject synth, bool success, > IntPtr error); > } > > and from my other file... > > public class AmeSpeechDelegate : VSSpeechSynthesizerDelegate > { > private IOSSpeechEngine engine; > > public AmeSpeechDelegate(IOSSpeechEngine engine) > { > this.engine = engine; > } > > public override void DidFinishSpeaking(NSObject synth, > bool success, > IntPtr error) > { > engine.IsSpeaking = false; > } > } > > where... > > speech = new VSSpeechSynthesizer(); > var speechDel = new AmeSpeechDelegate(this); > speech.WeakDelegate = speechDel; > > > Am I still missing something? I'm not quite sure what's going on under the > hood. Thanks again! > > -Alex > > > > > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/Accessing-VSSpeechSynthesizer-engine-on-iPhone-tp4657969p4657978.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch >
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
