#Build the SpeechTranslator Project
###Component Lists:
- 2 Raspberry Pi 2 boards
- 2 Raspberry Pi 2 Power Supplies
- 2 Microsoft LifeChat-3000 Headset
- 2 Mice
- 2 Ethernet cables
- 2 micro-SD cards
- 2 HDMI monitors
- 2 HDMI cables
- 1 Router
- 1 micro-SD card reader
-
Follow the instruction to flush your micro-SD cards
-
Repeat the above to setup the other device
-
Once the two devices both boots up, you should see the device name and device ip on the screen; Be sure to connect two devices to the router, then the router will be connected to Internet.
-
SSH/Telnet/powershell into the device, type:
setcomputername speechtransrpi2to rename one device, and typesetcomputername speechtransrpi1to rename the other device;Note: you can choose the other device name as well, but in constantParam.cs file(you will see this file once you download the sample and open the solution as below steps show), you need to match them up. You will see the details later.
-
Restart the device: shutdown /r /t 0
-
Download the sample from here to your local PC
-
Open the solution file in visual studio
-
Open the constantParam.cs file, you need to specify your own azure clientid and clientsecret
Note: You need an account to access the MS translation service in azure; Follow this link to get one, Once you get it, replace the clientid and clientsecret with yours.
-
Build the solutions
-
Deploy to devices;
If you are going to deploy to the device
speechtransrpi1, In ConstantParam.cs, line 3, make sure it reads as#define RPI1Then right click on the project, under property/debug, put the ip address ofspeechtransrpi1.If you are going to deploy to the device
speechtransrpi2, In ConstantParam.cs, line 3, make sure it reads as#define RPI2Then right click on the project, under property/debug, put the ip address ofspeechtransrpi2.Basically, the demo works like a phone line. You need to specify the ServerHostName which is where you are going to send data to. That is what
Defineis doing here. -
Once deployment is done, open the webb url which should be something like this: http://yourdeivceipaddress:8080, under App/Installed APP, choose the
speechtranslatorapp, then click start; Do this for the other deivce as well.Now you are ready to use the speech translator!