www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/07/19/13:21:18

Date: Wed, 19 Jul 95 15:48 GMT
From: "Kevin Ashley, Systems Development, ULCC" <CZIWKGA AT VMSFE DOT ULCC DOT AC DOT UK>
To: A DOT APPLEYARD AT FS2 DOT METALLURGY DOT UMIST DOT AC DOT UK, DJGPP <DJGPP AT SUN DOT SOE DOT CLARKSON DOT EDU>
Subject: Re: Simple C or C++ speech synthesizer wanted

In one of Anthony Appleyard's messages, he said:

>  Someone kindly sent me the source form of a speech simulation package in C;
>but in one of its files is:-
>#include <useconfig.h>
>...
>#include <audio/audiolib.h>
>#include <audio/soundlib.h>
> Sound s = SoundCreate(SoundFileFormatNone, little_endian ?
>...
>   if (!AuSoundPlayFromData(aud, s, data, AuNone,
>...
>  I can't find the bodies of the functions SoundCreate and AuSoundPlayFromData
>anywhere in this package. Are they in some standard C library?

Anthony,
            The includes and functions are from NAS, the Network Audio System.
NAS is like X for sound (i.e. it has clients and servers, they talk via
networks, the data format is host-independent, multiple clients talk to
one server, etc etc etc etc.)  For what you said you wanted to do you don't
want the source and include files for NAS as they will be of no use to you.

My memory of your original request was that you wanted source
code examples that concocted digitised simulated speech. You would then
integrate this into whatever environment you wanted. It looks as if you've
been sent a useful program that does just that. All you need to do is to
replace the calls to NAS to calls to whatever system you are using. Since we
don't know if you want real-time playback from the synthesis program, or
whether playback is being doing from files that the synthesis program creates
offline or online, we can't tell you what to do here.

The NAS functions have nice long names that make their functions relatively
obvious. The above routines create an empty sound structure in raw format
(i.e. just samples without any header stuff) and then play sound data
stored in such a structure. You don't need to know anything about the internals
of how this works to make sense of such a program.

Incidentally, it would be nice if you tell the rest of the group about
what you have been sent, and either point us at where we can get it or
make it available yourself. Others may well be interested.
------------------------------------------------------------------------------
Kevin Ashley                              K DOT Ashley AT Ulcc DOT ac DOT uk
Systems Development Group Manager      http://www.ulcc.ac.uk/staff/Kevin+Ashley
University of London Computer Centre.      ...ukc!ncdlab!K.Ashley
                      This is not a signature

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019