Sunday, June 22, 2014

Now let us explain what we do individually. In line 3, using primarily for audio processing System.


News and Announcements Embedded Systems Projects pilot project Fatih Droid e-Reader for Linux Category Android Categories FPGA MCU / CPU Arduino STM32 beaglebo to the MSP430 Embedded Software CPU Turkey 2008 (CPU Design) Virtual Processor Design Physical Processor Design Academic Innovative Embedded System Design
Hi, first of Mc-Turkey as a platform for giving us the chance to write Niyazi Sarala and spelling, I'm going too would like to thank everyone for enjoyable reading. In this article we take Energia audio from a computer using the Stellaris by Launchpad union bank LED'll check.
Of material which is necessary for it; Of course a Stellaris LP, a computer and a microphone. To explain briefly our project, will consist of two parts, the first made of the results of audio processing with C # serial port is sent to the CPU section. union bank 2nd check and let the processor to determine the status of the data we part. Let's get started! Note: we will see later System.Speech library Turkish English language does not include union bank support union bank for the system need to do.
Before you begin a project, you first need to download Energia program. Energie Arduino programming as TI Launchpad series lets us. Interface is completely the same with the Arduino IDE, which has previously worked with arduino will suffer no shortage of friends on this platform.
If you have completed all of the above operations union bank to C # in Visual union bank Studio to handle part of the program you are opening up and we click on New Project located in the left part. Which appear on the screen after you select Windows Forms Applications, union bank double-click the form again encountered the portion of code you are opening up. Note: This article is mainly for embedded systems to create union bank a Visual union bank Studio union bank project and code will not be described in detail. For more information on these topics are in abundance on the internet. C # for the sound operation of our kullancağa Speech is the name of the library. To include this software from the Solution Explorer window, you will need to add as a reference. union bank
using System; using System.Windows.Forms; using System.Speech.Recognition; using System.IO.Ports; windowsformsapplication1 namespace union bank {public partial class Form1: Form {public Form1 () {InitializeComponent (); Serialport1} SerialPort = new SerialPort (); SpeechRecognitionEngine SpeechRecognitionEngine speecheng = new (); private void Form1_Load (object sender, EventArgs e) {/ / Serial port operation serialport1. portname = "COM5"; serialport1. baudrate = 9600; serialport1. Open (); to speecheng. As setınputtodefaultaudiodevi (); / / Select the default audio device choises Choices = new Choices ("Open", "Close"); / / Will be detected words / / Grammar Operations GrammarBuilder GrammarBuilder = new GrammarBuilder (choises); Grammar grammar = new Grammar (Choices); to speecheng. LoadGrammar (grammar); / / When sound is detected to speecheng tetikelencek methods. union bank SpeechRecognized + = new EventHandler <speechrecognizedeventargs> (speechengine_speechrecognized); / / Words speecheng to be perceived as asynchronous. union bank recognizeasync (Multiple recognizemode.); Speechengine_speechrecognized} void (object sender, speechrecognizedeventargs e) {foreach (RecognizedWordUnit words in e. Result. Words) {if (words. union bank Text. Equals ("Open")) serialport1. Write ("1"); else if (words. Text. Equals ("Close")) serialport1. Write ("0"); }}}}
Now let us explain what we do individually. In line 3, using primarily for audio processing System.Speech.Recognition; We've added the library. 4.satır to send data from the serial port using System.IO.Ports; We've added the library. Serial union bank port and audio in the Form1_Load function union bank after operations to define the overall event and we've assigned properties. Finally, methods of software that runs when a sound is detected speechengine_speechrecognized we look at what happened in the method of the command. If the command 'open' is not one of the serial ports have a value of 0 means. Interested in areas we did not get into much detail as there is in C #, a language from the internet that you can look. Have resources in abundance. Note: serialport1.portn it in the Form1_Load function = "COM5"; command must adjust to their computer. For it is in the device manager you can see what port your kit from.
void setup () {pinmo at (RED_LED, OUTPUT); / / Depending on the kit is the red LED pin is set as output Serial. begin (9600); / /} Void loop Seriport opening rate is determined () {if (available SERIAL.INI

No comments:

Post a Comment