Page 1 of 1

No sound during verification.

Posted: 01 Dec 2014 20:15
by Aeliss
Hi.
First, I haven't problem with this hardware, for the moment it works perfectly. But just a question after having recording a sound, on somes videos, the software repeat the sentence, not in my case, even if I use the play button on the project tab.
I m just using it on USB port. It will use computer speaker ?

It s normal ?

Re: No sound during verification.

Posted: 02 Dec 2014 16:27
by darko.minic
Hi Aeliss,

Basically SpeakUp is designed for spoken recognition (not for recorded commands). In theory it can work with recorded commands, but we didn't test it.
In which situations SpeakUp works correctly? SpeakUp can be used with external microphone.

Regards,
Darko

Re: No sound during verification.

Posted: 02 Dec 2014 18:08
by Aeliss
It works correctly in all situation, I haven't problem with it.
When you press the "record" button, you record your word, and immediatly after the sofware make a verification with reading the previous word, the recorded command is
played back automatically, not on my version.
Even if I press the "play" button, I haven't sound.

I have see some video on youtube, and other version have sound at this moment.

It s not a problem, all working fine, it s just because my version don't work like on video.

Re: No sound during verification.

Posted: 04 Dec 2014 19:03
by Aeliss
I m the only one with this strange working mode :D ?

Re: No sound during verification.

Posted: 05 Dec 2014 16:38
by darko.minic
Hello,

Problem which you have is unusual, in theory when the command is recorded properly you should be able to hear it.
Certainly we will investigate this problem a little bit further, and try to find source of problem.

Regards,
Darko

Re: No sound during verification.

Posted: 06 Dec 2014 13:42
by Aeliss
Thx, just for information I m on windows seven x64.

Re: No sound during verification.

Posted: 06 Dec 2014 17:50
by Aeliss
Another strange thing, I don't know if it s normal or not.
If I plug the board with USB in a PC all is ok, but if I plug it (with usb too) on the raspberry it don't work, the LED1 (amber) is not lighning.
To make it working with raspberry I need to connect the 3.3V and Ground pin (without usb connection ofc), it don't work with raspberry USB port.

I have made a try with an USB port on a modem, same problem, it s not possible to use an USB port just for alimentation.

For the moment I use uart connection beetween Speakup and raspberry, but I think because of that it s not possible to use only the USB port for alimentation and communication ?

Re: No sound during verification.

Posted: 08 Dec 2014 16:18
by darko.minic
Hello Aeliss,

Unfortunately we didn't tested speakUp with raspberry Pi connected over USB.
SpeakUp is designed to be recognized as standard HID device when is connected with PC, and controlled via SpeakUP application.

In theory if you use SpeakUp click in click mode (when it's connected with microBUS socket) you should receive index of recognized word/command over UART.

Regards,
Darko

Re: No sound during verification.

Posted: 08 Dec 2014 17:56
by Aeliss
In theory if you use SpeakUp click in click mode (when it's connected with microBUS socket) you should receive index of recognized word/command over UART.
It's not theory, :D , I can confirm, it s works perfectly with UART, I m just using a breadboard, with ground, +3.3V, TX and RX. But I m curious to know why USB don't work (even just for alimentation) , I can't understand if it's software or hardware.

The code I m using to make my test on Raspberry, in C, the code isn't perfect it s just a prototype for my test, lot of useless code inside.

Code: Select all

/**************************************************

file: demo_rx.c
purpose: simple demo that receives characters from
the serial port and print them on the screen,
exit the program by pressing Ctrl-C

compile with the command: gcc -O UART2 uart.c rs232.c

http://www.teuniz.net/RS-232/

**************************************************/

#include <stdlib.h>
#include <stdio.h>

#ifdef _WIN32
#include <Windows.h>
#else
#include <unistd.h>
#endif

#include "rs232.h"



int main()
{
  int i, n,
      cport_nr=22,       
      bdrate=115200;

  unsigned char buf[4096];

  char mode[]={'8','N','1',0};


  if(RS232_OpenComport(cport_nr, bdrate, mode))
  {
    printf("Can not open comport\n");

    return(0);
  }

  printf("Open port %i a la vitesse %i\n",cport_nr,bdrate);

  while(1)
  {
    n = RS232_PollComport(cport_nr, buf, 4095);

    if(n > 0)
    {
      buf[n] = 0;   /* always put a "null" at the end of a string! */

      for(i=0; i < n; i++)
      {
        if(buf[i] < 32)  /* replace unreadable control-codes by dots */
        {
          //buf[i] = '.';
        }
      }

      printf("received %i bytes: %s\n", n, (char *)buf);
      if (i == 1)
      	{
		printf("Value : %d\n", buf[0]);
	}
      if (i == 2)
      	{
		printf("Value : %d\n", buf[1]*255+buf[0]);
	}
    }

#ifdef _WIN32
    Sleep(100);
#else
    usleep(100000);  /* sleep for 100 milliSeconds */
#endif
  }

  return(0);
}
Your board is realy a good hardware, but there is too few tutorial to use it at this moment.

Re: No sound during verification.

Posted: 09 Dec 2014 16:57
by darko.minic
Hi Aeliss,

Thank you for sharing your experience with our users.

Regards,
Darko