# develop-27 9609 September 1996 — source transcripts, page 2

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-develop-27-9609-september-1996-aa3c4b/2)

## Transcribed source material

Machine transcriptions and image descriptions; uncertain copy may be marked [illegible]. Verify against the linked originals. Historical rights remain with the original owners.

These are transcribed excerpts, not the full publications. Open the originals for remaining pages.

### PDF page 12

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-27-9609-september-1996-aa3c4b/2#scan-8bf897beb3d9fa7e1e1004ab7bc869a7b7dca79bd1b6a0c6053c99948c3ced8f)

Transcribed text:

develop   Issue 27   September 1996 10
Listing 1.   Determining the Speech Recognition Manager version
Boolean   HasValidSpeechRecognitionVersion   (void)
{
OSErr   status;
long   theVersion;
Boolean   validVersion   =   false;
const   unsigned   long   kMinimumRequiredSRMVersion =   0x00000150;
status   =   Gestalt(gestaltSpeechRecognitionVersion,   &theVersion);
if   (!status)
if   (theVersion   >=   kMinimumRequiredSRMVersion)
validVersion   =   true;
return   validVersion;
}
Listing 2.   Initializing the Speech Recognition Manager
/*   Our   global   variables   */
SRRecognitionSystem   gRecognitionSystem   =   NULL;
SRRecognizer   gRecognizer   =   NULL;
SRLanguageModel   gTopLanguageModel   =   NULL;
AEEventHandlerUPP   gAERoutineDescriptor   =   NULL;
OSErr   InitSpeechRecognition   (void)
{
OSErr   status   =   kBadSRMVersion;
/*   Ensure   that   the   Speech   Recognition   Manager   is   available.   */
if   (HasValidSpeechRecognitionVersion())   {
/*   Open   the   default   recognition   system.   */
status   =   SROpenRecognitionSystem(&gRecognitionSystem,
kSRDefaultRecognitionSystemID);
/*   Use   standard   feedback   window   and   listening   modes.   */
if   (!status)   {
short   feedbackNeeded   =   kSRHasFeedbackHasListenModes;
status   =   SRSetProperty(gRecognitionSystem,
kSRFeedbackAndListeningModes,   &feedbackNeeded,
sizeof(feedbackNeeded));
}
/*   Create   a   new   recognizer.   */
if   (!status)
status   =   SRNewRecognizer(gRecognitionSystem,   &gRecognizer,
kSRDefaultSpeechSource);
/*   Install   our   Apple   event   handler   for   recognition   results.   */
if   (!status)   {
status   =   memFullErr;
(continued on next page)

Reading notes: Source is a technical magazine page with code listings; no advertised products or prices present. Page ends mid-listing with '(continued on next page)', so the reading order is incomplete.

Printed dates: September 1996

Languages: English

[Original PDF page 12](https://www.vintageapple.net/files/54f5527d0c6bb2be448f3864de05cd40a81c6fd9089981a15b9613ecfbcb8355/develop-27_9609_September_1996.pdf#page=12)

[Previous transcribed scans](https://www.vintageapple.net/transcripts/media/va-develop-27-9609-september-1996-aa3c4b/1.md)
