A Card Trick

[Home]   [Puzzles & Projects]    [Delphi Techniques]   [Math topics]   [Library]   [Utilities]




Search WWW

Search DelphiForFun.org

As of October, 2016, Embarcadero is offering a free release of Delphi (Delphi 10.1 Berlin Starter Edition ).     There are a few restrictions, but it is a welcome step toward making more programmers aware of the joys of Delphi.  They do say "Offer may be withdrawn at any time", so don't delay if you want to check it out.  Please use the feedback link to let me know if the link stops working.


Support DFF - Shop

 If you shop at Amazon anyway,  consider using this link. 


We receive a few cents from each purchase.  Thanks


Support DFF - Donate

 If you benefit from the website,  in terms of knowledge, entertainment value, or something otherwise useful, consider making a donation via PayPal  to help defray the costs.  (No PayPal account necessary to donate via credit card.)  Transaction is secure.

Mensa Daily Puzzlers

For over 15 years Mensa Page-A-Day calendars have provided several puzzles a year for my programming pleasure.  Coding "solvers" is most fun, but many programs also allow user solving, convenient for "fill in the blanks" type.  Below are Amazon  links to the two most recent years.

Mensa 365 Puzzlers  Calendar 2017

Mensa 365 Puzzlers Calendar 2018

(Hint: If you can wait, current year calendars are usually on sale in January.)


Feedback:  Send an e-mail with your comments about this program (or anything else).

Search DelphiForFun.org only




Problem Description

Select a card from the displayed playing cards, but do NOT point the mouse to it.  Instead speak the name of the selected card into your speakers, and this program will remove it from the display.  Accuracy has been proven to be nearly 100%!   Download the the program and try it for yourself.  

Background & Techniques

Due to recent advances, it's now possible to sense the vibrations caused by the human voice as the sound impacts the speakers attached to your PC.   The induced currents feed back through the sound card and can be detected.  Any output sounds are then subtracted and the result fed into a small speech-to-text digital signal processor capable of recognizing a limited vocabulary. 

Or ---  it might just be a trick.

The graphical Card component introduced back in Cards #2 is used to create the card images.

The panels used for displays overlap each other on the screen.  At design time you can right click and select "Send to back" to view  the hidden panels.  

I'm sure you will understand that I really can't discuss more about the program here without revealing trade secrets.   You'll just have to check it out for yourself.  

Running/Exploring the Program 

bulletDownload source
bulletDownload  executable

Suggestions for Further Explorations

Additional error screens could be displayed advising the user about techniques to improve recognition accuracy, perhaps two or three like the following:  ("Speak louder", "Speak  slower", "Speak in a  higher pitch please", "Try tilting your head to the left",   "Nasal voices are easier to recognize, try holding your nose", etc.)

Modified: May 11, 2018

  [Feedback]   [Newsletters (subscribe/view)] [About me]
Copyright 2000-2018, Gary Darby    All rights reserved.