/********************************************************************************************************************************/ /* Created: 30-Mar-2010 17:29:26 by OpenVMS SDL EV3-3 */ /* Source: 30-MAR-2010 17:29:19 $1$DGA7274:[STARLET_H.SRC]DTK$ROUTINES.SDI;1 */ /********************************************************************************************************************************/ /*** MODULE dtk$routines ***/ #ifndef __DTK_ROUTINES_LOADED #define __DTK_ROUTINES_LOADED 1 #pragma __nostandard /* This file uses non-ANSI-Standard features */ #pragma __member_alignment __save #pragma __nomember_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __save /* Save the previously-defined required ptr size */ #pragma __required_pointer_size __short /* And set ptr size default to 32-bit pointers */ #endif #ifdef __cplusplus extern "C" { #define __unknown_params ... #define __optional_params ... #else #define __unknown_params #define __optional_params ... #endif #ifndef __struct #if !defined(__VAXC) #define __struct struct #else #define __struct variant_struct #endif #endif #ifndef __union #if !defined(__VAXC) #define __union union #else #define __union variant_union #endif #endif /**************************************************************************** */ /* * */ /* COPYRIGHT (c) 1988 BY * */ /* DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASSACHUSETTS. * */ /* ALL RIGHTS RESERVED. * */ /* * */ /* THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND COPIED * */ /* ONLY IN ACCORDANCE WITH THE TERMS OF SUCH LICENSE AND WITH THE * */ /* INCLUSION OF THE ABOVE COPYRIGHT NOTICE. THIS SOFTWARE OR ANY OTHER * */ /* COPIES THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE AVAILABLE TO ANY * */ /* OTHER PERSON. NO TITLE TO AND OWNERSHIP OF THE SOFTWARE IS HEREBY * */ /* TRANSFERRED. * */ /* * */ /* THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT NOTICE * */ /* AND SHOULD NOT BE CONSTRUED AS A COMMITMENT BY DIGITAL EQUIPMENT * */ /* CORPORATION. * */ /* * */ /* DIGITAL ASSUMES NO RESPONSIBILITY FOR THE USE OR RELIABILITY OF ITS * */ /* SOFTWARE ON EQUIPMENT WHICH IS NOT SUPPLIED BY DIGITAL. * */ /* * */ /* * */ /**************************************************************************** */ /* DTK$ANSWER_PHONE */ /* */ /* Wait for Phone to Ring and Answer */ /* */ /* The Wait for Phone to Ring and Answer routine */ /* waits for the phone connected to the DECtalk device to ring */ /* and then answers it. */ /* */ #define dtk$answer_phone DTK$ANSWER_PHONE #ifdef __NEW_STARLET unsigned int dtk$answer_phone( unsigned int *voice_id, __optional_params ); #else /* __OLD_STARLET */ unsigned int dtk$answer_phone(__unknown_params); #endif /* #ifdef __NEW_STARLET */ /* DTK$CHECK_HDWR_STATUS */ /* */ /* Check Hardware Status */ /* */ /* The Check Hardware Status routine checks the DECtalk hardware for hardware */ /* malfunctions. */ /* */ #define dtk$check_hdwr_status DTK$CHECK_HDWR_STATUS #ifdef __NEW_STARLET unsigned int dtk$check_hdwr_status( unsigned int *voice_id, unsigned int *hdwr_status); #else /* __OLD_STARLET */ unsigned int dtk$check_hdwr_status(__unknown_params); #endif /* #ifdef __NEW_STARLET */ /* DTK$DIAL_PHONE */ /* */ /* Dial the Telephone */ /* */ /* The Dial the Telephone routine dials the specified number on the telephone. */ /* */ #define dtk$dial_phone DTK$DIAL_PHONE #ifdef __NEW_STARLET unsigned int dtk$dial_phone( unsigned int *voice_id, void *phone_number, __optional_params ); #else /* __OLD_STARLET */ unsigned int dtk$dial_phone(__unknown_params); #endif /* #ifdef __NEW_STARLET */ /* DTK$HANGUP_PHONE */ /* */ /* Hang Up the Phone */ /* */ /* The Hang Up the Phone routine speaks an optional message and */ /* then hangs up the phone. */ /* */ #define dtk$hangup_phone DTK$HANGUP_PHONE #ifdef __NEW_STARLET unsigned int dtk$hangup_phone( unsigned int *voice_id, __optional_params); #else /* __OLD_STARLET */ unsigned int dtk$hangup_phone(__unknown_params); #endif /* #ifdef __NEW_STARLET */ /* DTK$INITIALIZE */ /* */ /* Initialize DECtalk */ /* */ /* The Initialize DECtalk routine initializes a DECtalk device and returns the device's assigned */ /* voice identifier. */ /* */ #define dtk$initialize DTK$INITIALIZE #ifdef __NEW_STARLET unsigned int dtk$initialize( unsigned int *voice_id, void *output_device, __optional_params); #else /* __OLD_STARLET */ unsigned int dtk$initialize(__unknown_params); #endif /* #ifdef __NEW_STARLET */ /* DTK$LOAD_DICTIONARY */ /* */ /* Load a Word into the DECtalk Dictionary */ /* */ /* The Load a Word into the DECtalk Dictionary routine */ /* loads a phonemic definition of a word into the DECtalk */ /* dictionary. */ /* */ #define dtk$load_dictionary DTK$LOAD_DICTIONARY #ifdef __NEW_STARLET unsigned int dtk$load_dictionary( unsigned int *voice_id, void *text, void *substitution); #else /* __OLD_STARLET */ unsigned int dtk$load_dictionary(__unknown_params); #endif /* #ifdef __NEW_STARLET */ /* DTK$READ_KEYSTROKE */ /* */ /* Read a Key Entered on the Keypad */ /* */ /* The Read a Key Entered on the Keypad routine */ /* reads a key entered on the phone keypad. */ /* */ #define dtk$read_keystroke DTK$READ_KEYSTROKE #ifdef __NEW_STARLET unsigned int dtk$read_keystroke( unsigned int *voice_id, int *key_code, __optional_params ); #else /* __OLD_STARLET */ unsigned int dtk$read_keystroke(__unknown_params); #endif /* #ifdef __NEW_STARLET */ /* DTK$READ_STRING */ /* */ /* Read a Series of Keys Entered on the Keypad */ /* */ /* The Read a Series of Keys Entered on the Keypad routine reads a */ /* series of keys entered on the phone keypad. */ /* */ #define dtk$read_string DTK$READ_STRING #ifdef __NEW_STARLET unsigned int dtk$read_string( unsigned int *voice_id, void *resultant_string, __optional_params ); #else /* __OLD_STARLET */ unsigned int dtk$read_string(__unknown_params); #endif /* #ifdef __NEW_STARLET */ /* DTK$RETURN_LAST_INDEX */ /* */ /* Return Last Index Spoken */ /* */ /* The Return Last Index Spoken routine returns the last index spoken. */ /* */ #define dtk$return_last_index DTK$RETURN_LAST_INDEX #ifdef __NEW_STARLET unsigned int dtk$return_last_index( unsigned int *voice_id, int *p_index); #else /* __OLD_STARLET */ unsigned int dtk$return_last_index(__unknown_params); #endif /* #ifdef __NEW_STARLET */ /* DTK$SPELL_TEXT */ /* */ /* Spell Text */ /* */ /* The Spell Text routine causes DECtalk to pronounce each letter of */ /* the specified text. */ /* */ #define dtk$spell_text DTK$SPELL_TEXT #ifdef __NEW_STARLET unsigned int dtk$spell_text( unsigned int *voice_id, void *text, __optional_params); #else /* __OLD_STARLET */ unsigned int dtk$spell_text(__unknown_params); #endif /* #ifdef __NEW_STARLET */ /* DTK$SPEAK_FILE */ /* */ /* Speak the Text in a Specified File */ /* */ /* The Speak the Text in a Specified File routine */ /* speaks the text contained in the specified file. */ /* */ #define dtk$speak_file DTK$SPEAK_FILE #ifdef __NEW_STARLET unsigned int dtk$speak_file( unsigned int *voice_id, void *filespec, __optional_params); #else /* __OLD_STARLET */ unsigned int dtk$speak_file(__unknown_params); #endif /* #ifdef __NEW_STARLET */ /* DTK$SPEAK_PHONEMIC_TEXT */ /* */ /* Speak the Specified Phonemic Text */ /* */ /* The Speak the Specified Phonemic Text routine */ /* sends the specified phonemic text to the DECtalk device */ /* to be spoken. */ /* */ #define dtk$speak_phonemic_text DTK$SPEAK_PHONEMIC_TEXT #ifdef __NEW_STARLET unsigned int dtk$speak_phonemic_text( unsigned int *voice_id, void *text, __optional_params); #else /* __OLD_STARLET */ unsigned int dtk$speak_phonemic_text(__unknown_params); #endif /* #ifdef __NEW_STARLET */ /* DTK$SPEAK_TEXT */ /* */ /* Speak the Specified Text */ /* */ /* The Speak the Specified Text routine */ /* sends the specified text to the DECtalk device */ /* to be spoken. */ /* */ #define dtk$speak_text DTK$SPEAK_TEXT #ifdef __NEW_STARLET unsigned int dtk$speak_text( unsigned int *voice_id, void *text, __optional_params); #else /* __OLD_STARLET */ unsigned int dtk$speak_text(__unknown_params); #endif /* #ifdef __NEW_STARLET */ /* DTK$SET_INDEX */ /* */ /* Insert an Index at the Current Position */ /* */ /* The Insert an Index at the Current Position routine */ /* inserts an index into the current output stream. */ /* */ #define dtk$set_index DTK$SET_INDEX #ifdef __NEW_STARLET unsigned int dtk$set_index( unsigned int *voice_id, int *p_index); #else /* __OLD_STARLET */ unsigned int dtk$set_index(__unknown_params); #endif /* #ifdef __NEW_STARLET */ /* DTK$SET_KEYPAD_MODE */ /* */ /* Turn the Phone Keypad On and Off */ /* */ /* The Turn the Phone Keypad On and Off routine turns recognition */ /* of the telephone keypad on or off. */ /* */ #define dtk$set_keypad_mode DTK$SET_KEYPAD_MODE #ifdef __NEW_STARLET unsigned int dtk$set_keypad_mode( unsigned int *voice_id, unsigned int *keypad_mode); #else /* __OLD_STARLET */ unsigned int dtk$set_keypad_mode(__unknown_params); #endif /* #ifdef __NEW_STARLET */ /* DTK$SET_LOGGING_MODE */ /* */ /* Set the Logging Mode for the Video Terminal Connected to the DECtalk Device */ /* */ /* The Set the Logging Mode for the Video Terminal */ /* Connected to the DECtalk Device routine */ /* controls the information that is displayed on the video */ /* terminal while the DECtalk device is functioning. */ /* */ #define dtk$set_logging_mode DTK$SET_LOGGING_MODE #ifdef __NEW_STARLET unsigned int dtk$set_logging_mode( unsigned int *voice_id, __optional_params ); #else /* __OLD_STARLET */ unsigned int dtk$set_logging_mode(__unknown_params); #endif /* #ifdef __NEW_STARLET */ /* DTK$SET_MODE */ /* */ /* Set the Mode for the DECtalk Terminal */ /* */ /* The Set the Mode for the DECtalk Terminal routine */ /* sets or resets the mode settings of the DECtalk terminal. */ /* */ #define dtk$set_mode DTK$SET_MODE #ifdef __NEW_STARLET unsigned int dtk$set_mode( unsigned int *voice_id, __optional_params ); #else /* __OLD_STARLET */ unsigned int dtk$set_mode(__unknown_params); #endif /* #ifdef __NEW_STARLET */ /* DTK$SET_SPEECH_MODE */ /* */ /* Turn Speech Mode On and Off */ /* */ /* The Turn Speech Mode On and Off routine */ /* either starts or stops the DECtalk device's speech. */ /* */ #define dtk$set_speech_mode DTK$SET_SPEECH_MODE #ifdef __NEW_STARLET unsigned int dtk$set_speech_mode( unsigned int *voice_id, unsigned int *new_mode, __optional_params); #else /* __OLD_STARLET */ unsigned int dtk$set_speech_mode(__unknown_params); #endif /* #ifdef __NEW_STARLET */ /* DTK$SET_TERMINAL_MODE */ /* */ /* Set the Mode for the Video Terminal Connected to the DECtalk Device */ /* */ /* The Set the Mode for the Video Terminal */ /* Connected to the DECtalk Device routine */ /* controls the attributes of the video terminal connected */ /* to the DECtalk device. */ /* */ #define dtk$set_terminal_mode DTK$SET_TERMINAL_MODE #ifdef __NEW_STARLET unsigned int dtk$set_terminal_mode( unsigned int *voice_id, __optional_params ); #else /* __OLD_STARLET */ unsigned int dtk$set_terminal_mode(__unknown_params); #endif /* #ifdef __NEW_STARLET */ /* DTK$SET_VOICE */ /* */ /* Set Voice Characteristics */ /* */ /* The Set Voice Characteristics routine */ /* changes the DECtalk voice characteristics to match those */ /* specified. */ /* */ #define dtk$set_voice DTK$SET_VOICE #ifdef __NEW_STARLET unsigned int dtk$set_voice( unsigned int *voice_id, __optional_params ); #else /* __OLD_STARLET */ unsigned int dtk$set_voice(__unknown_params); #endif /* #ifdef __NEW_STARLET */ /* DTK$TERMINATE */ /* */ /* Terminate DECtalk */ /* */ /* The Terminate DECtalk routine terminates the use of an initialized DECtalk */ /* device. */ /* */ #define dtk$terminate DTK$TERMINATE #ifdef __NEW_STARLET unsigned int dtk$terminate( unsigned int *voice_id); #else /* __OLD_STARLET */ unsigned int dtk$terminate(__unknown_params); #endif /* #ifdef __NEW_STARLET */ #pragma __member_alignment __restore #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __restore /* Restore the previously-defined required ptr size */ #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __DTK_ROUTINES_LOADED */