Creating Roamer Sound Procedures

How to Make Roamer Speak and Make Noises

This topic:

  1. Explains the Roamer Sound System.
  2. Shows you two ways of creating Roamer Speech Procedures.
  3. Explains how you can download these into Roamer.
  4. Lists the Help and Prompt Procedures for the Standard Roamers.

The Roamer Sound System

The chip in Roamer’s Keypad stores all the Sound Procedures.  If you’re using a Roamer set without a keypad then you must store these Procedures using an alternative method.  You need to create 8 kHz Pulse Code Modulation (PCM) Waveform Audio File (Wav) audio files.  These then need compressing to suit Roamer’s set up.  You need to your files to Valiant who will compress them and return them to you.  Later we aim to offer a package that will allow you to compress the files.

Creating Roamer Speech Procedures

You can create speech files by:

  1. Making an audio recording.
  2. Using a text to speech software package.

Record Speech Procedures

Audacity Audio Recording Software

As long as you create a speech file in the right format you can use any audio recording software you want.  However, we recommend using Audacity.  Its free, open source,  powerful and not too difficult to use for our purpose.  You can download a version from the Audacity web site.

Using Audacity to Record Roamer Speech Procedures

Using Audacity to Create Roamer Speech Files from Dave Catlin on Vimeo.

Saving Exported Sound Files

This is an example of Audacity’s exported metadata for Speech Procedure P219.

http://www.audacityteam.org/

  1. Author so we can assign credit.
  2. Sense Procedure Number.
  3. Variation information.

Variation Information

P219 is an example of a Roamer Help Procedure whose message varies with different Standard Roamers.   This procedure helps programmers understand the correct syntax for creating a Roamer procedure.  It’s not needed for the Early Years or Infant K1 Roamer because they don’t support procedures.   The Primary Roamer introduces procedures in a limited: the Junior Roamer introduces the full idea.  They need different help messages.

Create Speech Procedures Using Text -To- Speech

Text-To-Speech

You can use any Text-To-Speech (TTS) software you want.  We used Acapela.  It  is not an expensive program, but it is not free. It has many languages and multiple choices for the popular languages.  You can even get the Queen of England.

Using Acapela

http://using.roamer-educational-robot.com/files/2017/05/Acapela-TTS-Editor.png

  1. Set the output format at to WAV 22 kHz.
  2. Select the voice.
  3. Enter the text.
  4. Listen to the voice.
    1. You may need to edit it to improve the sound.
  5. Save the file.

Cost Saving Tips

Using the Acapela Box you pay each character.  Note the following:

  1. Spaces and punctuation marks count as characters.
  2. Use number – that is 14 not fourteen.
  3. Remove full stops at the end of a sentence.
  4. You can you text language: C U later.
  5. Keep sentences short and use a conversational style: let the context work for you.  For example instead of, “Press forward then enter a number between 1 and 100” try “Press forward.  Enter a number 1 to 100”.

Changing Audio Speed

The normal audio speed is “100”.  Use the tags \rspd=200\ doubles the 100 standard speed rate.  \rspd=50\ halves the standard speech rate.  On the latest version you can set the speed using the slider in advance settings

Shaping the Voice

You can change the voice using the voice shaping.  However, it is important for the continuity of Roamer that you keep a record of the settings.  Later developments will need you to use the same voice – if you do not, Roamer will sound like two different machines

Pronunciation

By clicking on the pronunciation editor, you get the following dialogue.

http://using.roamer-educational-robot.com/files/2017/05/Acapela-Pronunciation-Adjustment.png

This allows you to use normal spellings for words, i though they produce strange pronunciations – they are replaced by the phonetic pronunciation.  For example the term wysiwyg (what you see is what you get) spelt correctly sounds like whizziwe.  If you enter wysiwig you get the correct pronunciation.

Formatting Text-To-Speech Files

Formatting Acapela Files from Dave Catlin on Vimeo.

Standard Speech Procedures

Make sure you save each file with the right metadata as described in Creating Sound Procedure Course: Sound File Metadata.  Remember the size of the sound file is critical.  You must try and keep the file size to a minimum.

Help Procedures

Procedure Function Message Early Years Infant K1 Primary Junior
P200 Unknown Error  Syntax problem. Please Contact Valiant. Yes Yes Yes Yes
 P201  Forward Press forward. Enter a number 1 to 100. No Yes Yes Yes
 P202  Backward Press back. Enter a number 1 to 100 No Yes Yes Yes
 P203  Left Press left. Enter a number 1 to 999. No Yes Yes Yes
 P204  Right Press right. Enter a number 1 to 999. No Yes Yes Yes
 P205  Wait Press wait. Enter a number 1 to 100. No Yes Yes Yes
 P206  Music Press music. For note duration enter a number 1 to 8. For pitch enter 1 to 14. No Yes Yes Yes
 P207  Speed Press Speed. Enter a number 1 to 10. No No Yes Yes
 P208  Drive Mode Press Drive Mode. Enter 1 for standard, 2 for speed and 3 for power. No No Yes Yes
P209 Move Scale Press Scale. Enter forward and a number 1 to 100. No No Yes Yes
P210 Turn Scale Press Scale. Enter right. Enter a number 1 to 999. No No Yes Yes
P211 Scale Press Scale. For turning press right then a number 1 to 999. For moving press forward then a number 1 to 100. No No Yes Yes
P213 Stop in a GO Program You can only use STOP inside a Sense Procedure. No No No Yes
P213 Stop in a GO Program Stop is not a command. Yes Yes Yes No
P216 Repeat Press Repeat. Enter a number 1 to 100. Press open bracket. Enter your repeat program. Press close bracket. No Yes Yes Yes
P217 Invalid Open Bracket Use open bracket to start a Repeat Instruction or a procedure definition. No No Yes Yes
P217 Invalid Open Bracket Use open bracket at the start of a Repeat Instruction. No Yes No No
P218 Invalid Closed Bracket  Use close bracket to end a Repeat Instruction or a procedure definition No No Yes Yes
P218 Invalid Closed Bracket  Use close bracket to end a Repeat Instruction. No Yes No No
 P219  Procedure Press 1 of the Procedure keys. Press open bracket. Enter your procedure definition. Press close bracket. No No Yes No
P219  Procedure Press P and. Enter a number 1 to 100. Press open bracket. Enter your procedure definition. Press close bracket. No No No Yes
P220  Procedure  Press Output. Press On or Off. No No Yes Yes
 P220  Procedure  Press Output. Enter the number of the output port. Press on or off. No No Yes Yes
P221 Servo Motor (No Control Pod fitted) No message assigned at this stage. No No No
P221 Servo Motor (Control Pods fitted) No message assigned at this stage. No No No Yes
P222 Input without Control Pod. Press the Input. Press P. Enter the number of the sense procedure. No No No Yes
P222 Input Control Pod Fitted. Press the Input. Press the number of the input port. Press P. Enter the number of the sense procedure. No No No Yes
P222 Input Press Input. Enter Ps. No No Yes No
P223 On and Off You must use this with the Output Command No No Yes Yes
P225 Volume Press the volume key. Enter a number 1 to 10. No No Yes Yes
P226 Set Music. Press Set Music. For the tempo enter a number 1 to 5. For the octave enter a number 1 to 3. No No Yes Yes
P227 Number (first key press) You need to enter a command. No Yes Yes Yes
P238 Variable Run Time I have a problem with Variable value. No No No Yes
P239 Incorrect syntax ftor MAKE Press Make, then the variable, then a number 1 to 999. No No No Yes

[1] The move and turn scale instructions have two entry error conditions.  P209 and P210 cover the case where students do not enter a correct scale number.  P211 deals with a scale press not followed with a forward or right turn keypress.

[2] CONID warns you if the program or behaviour you load into Roamer is compatible with your Roamer hardware set up.  Note: Currently this feature is not implemented.

[3] Roamer has a new optional command called MAKE.  This allows you to add a variable to the Junior Roamer Keypad.  When we issue this, it will be a free upgrade.

Prompt Procedures

Procedure Function Message Early Years Infant K1 Primary Junior
P212 Valid GO Program I can do it. Yes Yes Yes Yes
Watch.  Here I go. Yes Yes Yes Yes
Your wish it my command Yes Yes Yes Yes
Stop is not a command Yes Yes Yes No
P214 Clear Memory (Warning) Are you sure? I’ll forget my program. Yes Yes Yes Yes
Do that again and you’ll clear my program Yes Yes Yes Yes
Press again to clear my memory. Yes Yes Yes Yes
P215 Confirm Memory Clear My memory is clear. Yes Yes Yes Yes
P224 Cancel Entry Nothing more to cancel No Yes Yes Yes
P227 Number (first key press) You need to enter a command. No Yes Yes Yes
P230 CONID Disparity[1] Yes Yes Yes Yes
P233 Clear Memory (already empty)  My memory is empty. Yes Yes Yes Yes
P234 STOP (when running GO) What is wrong? Yes Yes Yes Yes
Did you forget something? Yes Yes Yes Yes
Changed your mind? Yes Yes Yes Yes
P235 Memory almost full. My memory is nearly full Yes Yes Yes Yes
P236 Illegal use of Skip Skip is only used in Sense Procedures No No No Yes
P241 Procedure Negative Entry This is a sound cue and no speech is needed. No No Yes Yes
P242 Procedure Positive Entry This is a sound cue and no speech is needed. No No Yes Yes
P243 Undefined System Error 1 System Error 1 please contact Valiant. Yes Yes Yes Yes
P246 Undefined System Error 2 System Error 2 please contact Valiant Yes Yes Yes Yes
P247 No GO Program I do not have a program to run Yes Yes Yes Yes
P248 Memory Full My Memory is full. Yes Yes Yes Yes
P249 Invalid Entry (Negative) This is a sound cue and no speech is needed. Yes Yes Yes Yes
P250 Valid Entry (Positive) This is a sound cue and no speech is needed. Yes Yes Yes Yes
P251 Inactivity Timeout I’m going to sleep – goodbye! Yes Yes Yes Yes
Let’s do this again – goodbye. Yes Yes Yes Yes
I’m done.  I’m turning off. Yes Yes Yes Yes
P252 Inactivity Prompt Have we finished? Turn me off. Yes Yes Yes Yes
Use me or turn me off. Yes Yes Yes Yes
If you turn me off you’ll save my batteries. Yes Yes Yes Yes
P253 Battery Low I’m tired.  Please charge me. Yes Yes Yes Yes
I’ve been working hard.  Please charge my batteries. Yes Yes Yes Yes
I’ve no more energy.  Please recharge me. Yes Yes Yes Yes
P254 Power Down (Battery Critical) Charge me now Yes Yes Yes Yes
P255 Power Up (Switching On) Hi.  I’m Roamer.  How are you? Yes Yes Yes Yes
I’m awake – lets learn. Yes Yes Yes Yes
It’s nice to see you – what are we doing today? Yes Yes Yes Yes

 

[1] CONID warns you if the program or behaviour you load into Roamer is compatible with your Roamer hardware set up.

Speech Procedures Available for Help and Prompts

We’ve not earmarked these Procedure numbers to a help or prompt task.  They’re available for use.

Procedure
P228
P229
P231
P232
P240
P244
P245