Show Posts
|
|
Pages: [1] 2 3
|
|
4
|
Using Arduino / Audio / Re: Wireless Audio Streaming and Speech Recognition (PART 1)
|
on: April 25, 2013, 03:35:17 pm
|
|
If the microcontroller you are using is able to capture and send 8000 samples per second from the mic, it should work with BitVoicer.
Just a tip: microcontrollers do not have the processing power nor the memory to perform speech recognition as shown in the video, so you will need external help.
|
|
|
|
|
5
|
Using Arduino / Audio / Re: Wireless Audio Streaming and Speech Recognition (PART 2)
|
on: April 03, 2013, 03:33:43 pm
|
|
I'm using the computer's WiFi interface and my home wireless network to send data to the Roving WiFly module attached to the Arduino. The communication preferences are just the IP address of the WiFly module and TCP port 2000. If you are using a pair of XBEEs, I believe that the one connected to the PC would appear as a virtual COM port, so you would have to use the settings of this port in the BitVoicer preferences. Which wireless module are you using with the Arduino?
|
|
|
|
|
6
|
Using Arduino / Audio / Re: Speech Recognition with BitVoicer and Arduino
|
on: February 08, 2013, 07:51:03 am
|
The new version of the BitVoicerSerial class does not take any parameters, so you can not add 0 to the wireless version of the code. Only the old version would take an int value. I found the code bellow in the BitVoicer's user manual. It uses the computer's mic to capture audio and does not use a wireless connection (the simplest setup possible). They have another sample code in the manual. I think you should take a look at it (section 5.5). //Imports the BitVoicer library to the sketch #include <BitVoicer11.h>
//Instantiates the BitVoicerSerial class BitVoicerSerial bvSerial = BitVoicerSerial();
//Stores the data type retrieved by getData() byte dataType = 0; //Stores the state of pin 4 byte pinVal = 0;
void setup() { //Starts serial communication at 9600 bps Serial.begin(9600); //Sets digital pin 4 as OUTPUT pinMode(4, OUTPUT); //Turns off pin 4 digitalWrite(4, pinVal); }
void loop() { //Updates the state of pin 4 on every loop digitalWrite(4, pinVal); }
//This function runs every time serial data is available //in the serial buffer after a loop void serialEvent() { //Reads the serial buffer and stores the received data type dataType = bvSerial.getData();
//Checks if the data type is the same as the one in the //Voice Schema if (dataType == BV_BYTE) { //Checks the stored value in byteData by getData() and //changes the value of the pin if (bvSerial.byteData == 0) pinVal = LOW; else pinVal = HIGH; } }
|
|
|
|
|
11
|
Using Arduino / Audio / Re: Wireless Audio Streaming and Speech Recognition (PART 1)
|
on: January 11, 2013, 07:00:30 am
|
|
Once again, the "set comm xxxxx" commands are for communication from the wireless module to the PC. They are useless when sending data from the PC to the module.
I don't think you are able to send data to the wireless module from a Telnet connection. In the module's manual there is no command to do that. You need to do it through software or making an HTTP request from the module to a web server.
|
|
|
|
|
13
|
Using Arduino / Audio / Re: Wireless Audio Streaming and Speech Recognition (PART 1)
|
on: January 09, 2013, 08:37:39 pm
|
The second part of this post has all the code I used ( http://arduino.cc/forum/index.php/topic,140766.0.html). The set comm match, size and time commands of these wireless modules are intended for communication from the module to the remote host, so using them will not help you receive data from the PC. I didn't have to setup anything to receive data from the PC and forward it to the Arduino through RX/TX. As far as I understood, the module fowards data as soon as it receives a complete packet. I think you are getting the ERR: Connected! message because you are already connected to the IP address and port you are trying to connect. If no arguments are provided to the open command, the device will attempt to connect to the stored remote host IP address and remote port number. Try using a different port and make sure that port is listening for incoming connection. What data are you trying to send to Arduino and which program is sending it?
|
|
|
|
|