Voice to text translator raspberry pi - text

Hi Im new to programming for Raspberry pi, but i have decided to make a "Voice to text translator" using the Raspberry pi.
So here is what it should do step by step:
press a button to start.
speak to the device via a plugged in microphone.
The device will now take the voice and convert it to a text
document.
Save it to the SD card.
Then press a button to stop.
So what i would like to know is, if this has already been made (I could not find any, for Raspberry pi)
and if this is even possible?
And thanks for the help by the way! :)

Check out jasper I was very impressed that a Raspberry Pi could do such a good job. It only messed up once for me (I said 'mayonnaise' and it put 'many') It is based on CMU Sphinx.

Related

Developing a TV application

I have been trying to build a TV application, using an SD.
I have got features like image gallery, video player running,
However, I also wanted to add a virtual on-screen keyboard that works with up-down left-right arrow keys. Can somebody help me with how to get started?
When I wanted to do this with my Vestel (Polaroid Branded) smart TV, which uses "Opera for TV devices" as it's HbbTV browser, I found that I didn't need to.
I simply just used HTML text fields and input types where needed, and as soon as I clicked into them, the browser/OS kernel popped up an onscreen keyboard that was built in for me.
However, I did do some research to see if I needed it, and on some devices you do, whilst I never actually implemented it (My app was just for my own use) the "BBC Television Application Layer" (TAL for short) : https://github.com/bbc/tal had pretty good keyboard support.
Another one that might be worth looking at is "Mautilus SDK" : https://github.com/mautilus/sdk
Be aware though, both are horribly convoluted and use quite complex code where it's really not needed.

perl Term::ANSIColor not working on Raspberry Pi Console

This code:
use Term::ANSIColor;
print color("blink bold red"), "TEST\n";
print color("reset");
Has worked for eons on whatever linux console I have used it on. However, I when I try it on a Raspberry Pi console (not Xwindows) running Raspbian Stretch it simply colors the text red but does not blink. Anyone have any ideas as to how I can get this to work?
Attributes such as blink, italic, or bold may not work with the 256-color palette. -documentation
After experimenting I can conclude that the reason that perl ANSI color's blink feature does not work on a Raspberry PI is because the monitor is connected via HDMI. perl ANSI color does in fact blink on a Raspberry PI if one logs in remotely from a machine with a VGA monitor.
Update: Further testing concludes the blinking feature will NOT work by using a HDMI to VGA adapter to connect a VGA monitor to the raspberry PI -- so save yourself the money. The only way possible to get perl ANSIColor's blink feature to work on a PI is by sshing to the machine from a VGA displayed machine.

How can I create a button (or hotkey) that will automatically connect my bluetooth headset?

I have a bluetooth headset that I would like to be able to quickly switch between connection from my laptop(running windows 8) to my phone. I downloaded autohotkey to help me make a hotkey that would connect to my bluetooth headset, but I was only able to make a hotkey that would open the bluetooth control panel for my specific headset, which is not what I was trying to accomplish. What I am trying to accomplish is a hotkey that would immediately connect my headset when typed.
The code I used in autohotkey, to open the bluetooth control panel(by clicking Ctrl+Alt+B) is:
^!b:: run "C:\Program Files\WIDCOMM\Bluetooth Software\BTWUIExt.exe" /deviceAddr=445ef3aa5294
this code won't work for you as the numbers and letters on the end are a uniqe idendifier for my specific headset. You can find your unique id by opening bluetooth in the control panel and right clicking your headset, selecting properties, clicking the bluetooth tab (remove the dots and colons).
This worked to connect the first bluetooth device in the list (Windows 10)
#SingleInstance,force
;https://autohotkey.com/board/topic/83571-autohotkey-connect-to-bluetooth/
^F1::
Run, bthprops.cpl
Sleep, 2000
Send, {tab}{tab}{enter}{tab}{enter}
Sleep, 200
Send,!{Tab}
return
There is very little information to give exact solution. But from given information I can say:
You can automate GUI with AutoHotkey so that script will go to the
place where unique id is located. In fact, AutoHotkey allows any
GUI automation (conventional or non conventional GUI).
If the unique id is there as a text and you can copy it, then it
also can be automated by several ways. If unique id cant be coped
and is as image, then it is slightly complicated and you need to use some OCR
techniques. In that case you need to make screenshot of that region
and use some OCR script getting text out of it. Or with AutoHotkey pass image to OCR software and get text from it.
After you have text, you can manipulate it the way you like. Most powerfull solution
is Regular Expressions which are supported by AutoHotkey.
When unique id is ready to use, you can use it in Run
command this way:
^!b:: run "C:\Program Files\WIDCOMM\Bluetooth Software\BTWUIExt.exe" %MyUnicIDVariable%
Turns out that the code I have works on its own. If I just wait for about 10 seconds after typing out the hotkey, the headphones connect, and the control panel that opened automatically closes. Quite convenient actually as I didn't expect it to connect or to auto-close the window.
Thanks for the effort anyway!
Try to install [Broadcom Bluetooth 4.0 Driver for Windows 8.1 ] LINK=>> 1 !
At least works fine on my HP-EliteBook-8570p with stereo "BlueDio 99B" headset. After switching the headset ON the Windows connect the device automatically, and switch Audio-Stream into new-attached device. Optimal!
PS - Unfortunately it is still the Problem with Windows 8.1 + Skype( MIC-Problem) :( Windows 8 is the first OS, than not support Skype at all! ;)

Trouble Re-mapping keyboard on Raspberry Pi

I have Raspbian Debian Wheezy installed on my Raspberry Pi. I was trying to learn python in IDLE 3 but when I tried to type the Number symbol (aka Hashtag, Pound) it came out with "£", so I can't type the number symbol at all. Also this symbol " is now swapped with the #. I was trying to reconfigure my keyboard with "sudo raspi-config" but I don't know what my model for my keyboard is. I am not familiar with the logo. But in the back it says "98149 Multimedia Keyboard". Is there a way to remap my keyboard correctly?
P.S. The default selected model is Generic 105 key (Intl) PC
you can use this command
setxkbmap us

Java with usb cam on linux: device not opening

I am trying to make pictures with a java programm under linux.
I have a normal usb cam, eclipse, java 7
....
i tried nearly all of the thread
Capturing image from webcam in java?
but nothing want to show me something....
With the Java Webcam SDK library
http://www.smaxe.com/product.jsf?id=juv-webcam-sdk
i came to the point where i can choose my usb-cam out of a list. But than the source tells me:
Failed to open device.
== same with the running... app under eclipse????
How to see something.
I like to use this pics... in a neural net...this is good ...this i like ....
Thx a lot Andy

Resources