flat assembler
Message board for the users of flat assembler.

Index > DOS > Talking program?

Author
Thread Post new topic Reply to topic
Artlav



Joined: 23 Dec 2004
Posts: 188
Location: Moscow, Russia
Artlav 28 Sep 2008, 17:43
I just dug up a gem out of an old floppy - a DOS program that speaks the thing given as an argument thru PC speaker, provided below.

Naturally enough, i got curious about how the thing works, yet the disassembler i have - an old IDA - broken it's teeth on it.

Maybe someone know something about the program's origin, and how it could work? Or perhaps, got a working source code of a similar thing?

Are there any modern non-MAC speech generators? Not like the half-life one, but a letter to sound one, like this.


Description: DOS speaking program.
Download
Filename: sppexe.zip
Filesize: 27.47 KB
Downloaded: 328 Time(s)

Post 28 Sep 2008, 17:43
View user's profile Send private message Visit poster's website Reply with quote
DJ Mauretto



Joined: 14 Mar 2007
Posts: 464
Location: Rome,Italy
DJ Mauretto 28 Sep 2008, 18:53
nice Smile
You simply use a sample for each letter, you can do if you have a microphone,
then compose a sentence with the sample and you run the
pc speaker of the common methods.
It sounds bad, but the idea is nice

_________________
Nil Volentibus Arduum Razz
Post 28 Sep 2008, 18:53
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4324
Location: Now
edfed 28 Sep 2008, 19:26
for XP users.

in config board:

sound/ voice/ "you have selected sam as the microsoft default voice"

just test, it have a better quality than SPP.exe.
i don't know what it is exactlly, but is on all XP installation.
Post 28 Sep 2008, 19:26
View user's profile Send private message Visit poster's website Reply with quote
Grom PE



Joined: 13 Mar 2008
Posts: 114
Location: i@grompe.org.ru
Grom PE 29 Sep 2008, 06:23
Yes, I know this little program too.
It's amazing that it can talk yet is just 44 kb in size.

Works only in pure DOS or DOSBox because of complex PC Speaker usage.
It speaks words from command line (in Russian CP866, but you can try English too),
uses + after vowel for accent (behaves strangely if it's not a vowel),
understands ?, !, : in the end of sentences and changes pitch accordingly.
It makes too long pause on space, so I use - or _ to split words visually.

I wanted to understand how it works, too.
Having sources would be awesome.
Try changing byte in spp.exe at 0000A0A2h from 77h to 60h, it will talk faster =)

Use following .bat file to see how it works:
Code:
@echo off
spp wse+m-priwe+t
spp hello+-me+n!-ha+urju+du+i+n?
spp spi+kinzi+do+iv? da+si+st-fanta+stiv    
Post 29 Sep 2008, 06:23
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1898
DOS386 30 Sep 2008, 06:05
Artlav wrote:
DOS program that speaks the thing given as an argument thru PC speaker, provided below.


YES it works (since I am the only one here in who has DOS at all ...). But the quality is very bad ... could be much better, keeping both DOS and PC speaker of course. Smile

Quote:
Naturally enough, i got curious about how the thing works, yet the disassembler i have - an old IDA - broken it's teeth on it. Maybe someone know something about the program's origin, and how it could work?


Very trivial thing ... just some work with letter mixing and some samples of a nice voice Smile

> It's amazing that it can talk yet is just 44 kb in size.

It's amazing to see how the bloat of some fine software products is racing towards the infinity Very Happy

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug
Post 30 Sep 2008, 06:05
View user's profile Send private message Reply with quote
Borsuc



Joined: 29 Dec 2005
Posts: 2465
Location: Bucharest, Romania
Borsuc 30 Sep 2008, 11:38
DOS386 wrote:
It's amazing to see how the bloat of some fine software products is racing towards the infinity Very Happy
Hehe Wink

even though of course, the actual "samples" (if you want high quality) will make most of the size. The bloat will still be there, and I hate bloated ****, but the size will be bigger even without bloat.

unless you use compression -- FLAC for example is completely lossless Wink

_________________
Previously known as The_Grey_Beast
Post 30 Sep 2008, 11:38
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1898
DOS386 04 Oct 2008, 05:37
> actual "samples" (if you want high quality) will make most of the size.

Right. But the primary problem of the version above seems not bad quality of input samples, but rather an unprecise speaker control or too low output sampling frequency, and too high volume.

> unless you use compression -- FLAC for example is completely lossless

Right ... but bloated, Vorbis (lossy) decoder is also bloated, so WAVPACK might be best here Wink
Post 04 Oct 2008, 05:37
View user's profile Send private message Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1154
ManOfSteel 04 Oct 2008, 08:33
I tried it in full DOS mode, but it doesn't work. I only hear high-pitched fast noise like a modem initiating a connection. Why's that? As far as I know, the PC speaker works quite well for other applications.


Artlav wrote:
Maybe someone know something about the program's origin, and how it could work? Or perhaps, got a working source code of a similar thing?

Although it doesn't work here for some reason, I can guess it's using formant synthesis. Some two years ago, I tried making a speech synthesizer using formant but abandoned it. The information on how to apply the theory is quite scarce.
But basically you have to simulate the entire vocal tract.
This method gives quite bad and unnatural results but you can have very high control over the output (intonation, timbre, gender, age, ...)
Post 04 Oct 2008, 08:33
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1898
DOS386 04 Oct 2008, 23:44
ManOfSteel wrote:
tried it in full DOS mode


What is "full DOS mode" ? What kernel ?

Quote:
But basically you have to simulate the entire vocal tract. This method gives quite bad and unnatural results but you can have very high control over the output (intonation, timbre, gender, age, ...)


Right ... and no need for bloated samples or FLAC or WAVPACK Idea

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug
Post 04 Oct 2008, 23:44
View user's profile Send private message Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1154
ManOfSteel 05 Oct 2008, 07:35
Quote:
What is "full DOS mode" ? What kernel ?

An MS-DOS shell not "emulated" by Windows, i.e. choosing the 'Command-Prompt' option from the startup menu ( F8 ) in a Win9x system (98SE).
Post 05 Oct 2008, 07:35
View user's profile Send private message Reply with quote
tikbalang



Joined: 20 Oct 2008
Posts: 5
tikbalang 01 Dec 2008, 03:32
here are three more similar dos programs. if anyone has the original archives with docs please let me know.


Description: sampled music from pc speaker.
Download
Filename: atom.zip
Filesize: 17.55 KB
Downloaded: 301 Time(s)

Description: text to speech for dos, recent find.
Download
Filename: mluv.zip
Filesize: 10.01 KB
Downloaded: 307 Time(s)

Description: text to speech for dos. can speak from commandline.
Download
Filename: TRAN.ZIP
Filesize: 31.49 KB
Downloaded: 284 Time(s)

Post 01 Dec 2008, 03:32
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1898
DOS386 03 Dec 2008, 03:28
tikbalang (welcome to the FASM forum Smile ) wrote:

> here are three more similar dos programs.

TRAN is corrupt Sad

MLUV lacks TFM and doesn't work (too fast CPU ?) (C) 1990 CZ ?

ATOM ... hehe Neutral

> if anyone has the original archives with docs please let me know

Indeed ... I don't Sad
Post 03 Dec 2008, 03:28
View user's profile Send private message Reply with quote
tikbalang



Joined: 20 Oct 2008
Posts: 5
tikbalang 03 Dec 2008, 11:09
- attached 2 un-compressed versions of tran.

"say.txt" came from another text-to-speech dos program that worked better than what i already uploaded here. i just need to remember what it was and where i put my copy.

for music, early MOD trackers can play thru the pc speaker (fasttracker2, modplay). modplay is still available here:

http://www.awe.com/mark/dev/modplay.html

there are even soundcard emulators like "remus" and "virtual sound blaster" than can output to the pc speaker, covox among other things. remus supossedly can emulate gus, sb, awe32, adlib, dac, dac stereo and output to existing card, pc speaker or covox. i'm unable to test it, however, since my onboard audio seems to interfere.

i was able to test and use vsb succesfully back when soundcards were still expensive accesories. it can only emulate SB 1.xx (mono). the code was released free by its author Andrew Zabolotny. i can upload them here if anyone wants it.


Description: a recent find, but with added/changed bytes.
Download
Filename: Tran09.zip
Filesize: 31.65 KB
Downloaded: 296 Time(s)

Description: my "original" copy since 1993. i don't know why it has 1996 filedate.
Download
Filename: TRAN08.ZIP
Filesize: 31.49 KB
Downloaded: 274 Time(s)

Post 03 Dec 2008, 11:09
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 03 Dec 2008, 13:57
tikbalang wrote:
…than can output to the pc speaker, covox…
Those were the days… PWM the PC speaker, solder R-2R ladder to snap in LPT… Wink
Post 03 Dec 2008, 13:57
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.