Info-Mac Archive Downloads: dev/src/ SourceCode

Back to dev/src/ SourceCode

my speech object (5 hours small unit, I'm getting better) (speech-unit-p.hqx)

Download speech-unit-p.hqx (10,403 KB)


From "PAUL M SHELDON " Thu Sep 2 10:50:08 1993
Date: Thu, 2 Sep 1993 10:23:13 -0500
From: PAUL M SHELDON
Subject: my speech object (5 hours small unit, I'm getting better)

--1426085571-978700603-746985779:#3021
Content-Type: TEXT/PLAIN; charset=US-ASCII

I didn't have help in c translation to pascal from the kid I mentor, PJ
Traue, this time, so there are definite guesses in pascal meaning of c.
In this archived submission are four mpw text files. I have
included interface and implementation of the speech unit, my old code segment
that doesn't use the unit and a new code segment which does.
I noted that the new code segment that uses the unit must also have a
uses speech or it won't know the meaning of a type, SpeechChannel. That's
odd, since I tried not having uses all the way up the hierarchy of calling
routines and the object oriented pascal language only caught me there. I am
curious as to when I can get away with not using uses items; I am curious
as to how much is, as they say in modula language, hidden import.
This speech unit works, but may have mistakes in particular in the
Gestalt manager call pascal interpretation of the c code written up in the
apple docviewer document on speech manager. Maybe the kid I mentor will
correct my translation. Maybe someone out there will. I also have Halts to
handle os errors. I think that is sort of lame, because I don't insure that
all objects are free'd with such a handling. Someone more savvy than could
improve on this, for sure.
I did several experiments with the unit. You will see my earlier (working)
experiments commented out. I wanted to see what a Boris with a Brenda echo
would sound like. It sounded like an incompetant translator, not like an
echo. There was a time delay, even when I didn't put it there from the
speech processing. A very short time for the Brenda echo, but noticeable.
If you use the same speaker object to speak concurrently, it cuts its own
speech off after an interceded delay. Evidentally, to have concurrent
speech, your program must seize a different channel.
What you can do with this:
With this as a unit in a text editor, you should be able to select
things you want to have the mac speak.
When you use this unit, you may discover a greater wisdom that I found
making it and improve upon it. For your courage, before I tried making
this primative thing, I thought it would take more than twice as long as
it did. It didn't, even though I was exhausted from other things I did
that day!
With this submission, you can get the feel of a boundary on how
long it takes pascal procedural code to be turned into a prototype unit
for an object.

--1426085571-978700603-746985779:#3021
Content-Type: APPLICATION/octet-stream; name="speechunitex.hqx"
Content-ID:
Content-Description: