Why i don't have the namespace text to speech in xamarin android? -
using system; using android.app; using android.content; using android.runtime; using android.views; using android.widget; using android.os; using android.speech.tts; namespace app1 { [activity(label = "app1", mainlauncher = true, icon = "@drawable/icon")] public class mainactivity : activity { int count = 1; protected override void oncreate(bundle bundle) { base.oncreate(bundle); // set our view "main" layout resource setcontentview(resource.layout.main); // our button layout resource, // , attach event button button = findviewbyid<button>(resource.id.mybutton); button.click += delegate { button.text = string.format("{0} clicks!", count++); }; } } }
i make using android.speech.tts after tts there nothing. maybe need download api using android sdk manager ? there lot of things download there should download them ?
texttospeech class, not namespace. if have android.speech.tts
declared using
statement, should able create instance of texttospeech
within class.
see texttospeech sample complete example.
Comments
Post a Comment