Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to store sounds in a table
Message
From
10/10/2006 08:34:35
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01160793
Message ID:
01160801
Views:
12
>Hi,
>I need to write a system that allows spoken words to be stored in a table, one word per row, and played back. I have setup a test table with a general field, and have used the Windows sound recorder to record some spoken words, and copied them via the clipboard to the general field, one by one. This works but is very time consuming, so would like to write a form to make it easier. The only documentation I've found that helps are samples that play or record sound in individual FILES. Because I will need about 1400 recorded words, keeping them in individual dedicated files would be impractical, I think. Is there a way to associate a sound recording or playback activex with a general field? Then my table would have 1400 rows.
>
>Thanks,
>Chris

Chris,
As Tore said avoid general field and use a memo or blob instead (Whole 1400 words and their corresponding binary recording might be stored in a single XML).
If those words are in English then you might as well just store the words and let speech API say them for you. ie:
loSpeak = CREATEOBJECT("SAPI.SPVoice")
loSpeak.Speak("Hi Chris, I can speak. Avoid general fields please.")
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform