Andy's LEGO® Mindstorms® Page
About this site
  
What's New?
  
Standard Disclaimer
Quite C
  
Francesco Ferrara
  
Getting Started
  
Installing Quite C
  
Compiling a project
  
Sample Code
Chess
  
The Robot Chess Project
  
Programming Chess
  
First Attempt
  
Version 0
  
Version 1
  
The Program
  
The State of Play
  
The User Interface
  
The Move Generator
  
The Move Applier
  
The Rating Algorithm
  
The Search Algorithm
  
Putting it all together
  
The Robot
  
The Head
  
Moving the head
  
Movies
  
Downloads: Source Executables, MLCad Models
4-in-a-Robot
  
4-in-a-Robot - the Robot
  
The 4-in-a-Robot Base
  
The 4-in-a-Robot Delivery Mechanism
  
The 4-in-a-Robot Controller
  
4-in-a-Robot - the Code
  
The 4-in-a-Robot Algorithm
  
The 4-in-a-Robot Control Programming
  
The 4-in-a-Robot Robot-less version
  
Installing 4-in-a-robot
  
Playing the robotless 4-in-a-robot
  
View the source code
Speech
  
The problems with speech
  
Sounds familiar
  
H8 Timers Background
  
Trial and Error
  
Volume Zapper
  
Actually Speaking
  
Speak.c - the code
  
The VB code generator
Some ideas for the future
  
Room positioning robot
  
Neural Net Bot
  
Pianola
  
Text to speech
LEGO® Mindstorms® Links

[268703]

Sounds familiar

  Hmmm... a simple speaker tied to a timer on the CPU - this sounds familiar...

In fact this is how the PC Speaker inside your PC works. Now many moons ago, before the days of fancy Soundblasters, you used to be able to get programs which played quite decent waveform audio through the PC speaker - how did they work?

It's actually similar to the way that the RCX drives the motors. Rather than send out different voltage levels, the PCSpeaker programmes worked by sending out pulses at different frequencies. The PC Speaker is actually quite un-responsive, so by sending out the right frequency of pulses, above those that the speaker was intended to handle, the cone of the speaker can't move fast enough and 'hovers' at a particular height. Now - the height depends on the frequency and so can be modified to follow the original waveform, and hence you get a decent sound.

The problem is that the RCX's speaker is actually very small, and very responsive, so using the PCSpeaker approach directly doesn't work. The RCX's speaker actually produces these super-high frequencies, rather than 'faking' a particular output signal strength. So you get very nasty sounding sound.

Mind you.... I though it was worth experimenting around with mega high frequencies.


Back to: The problems with speech

Show Topic: Speech

Next Page: H8 Timers Background