27 #ifndef DOXYGEN_SHOULD_SKIP_THIS 29 #ifndef VocalTract_Class_Defined__ 30 #define VocalTract_Class_Defined__ 35 #define frame_buffers (8) 39 #define frame_bytes ((3 + 13)) 41 #define frame_longs ((frame_bytes / 4)) 42 #define frame_buffer_bytes ((frame_bytes * frame_buffers)) 43 #define frame_buffer_longs ((frame_longs * frame_buffers)) 46 volatile int32_t cog, tract, pace;
48 volatile int32_t index, attenuation, sample;
50 volatile int32_t dira_, dirb_, ctra_, ctrb_, frqa_, cnt_;
52 volatile int32_t frames[frame_buffer_longs];
55 int32_t VocalTract_start(
VocalTract *talkId, int32_t tract_ptr, int32_t pos_pin, int32_t neg_pin, int32_t fm_offset);
57 int32_t VocalTract_set_attenuation(
VocalTract *talkId, int32_t level);
58 int32_t VocalTract_set_pace(
VocalTract *talkId, int32_t percentage);
59 int32_t VocalTract_go(
VocalTract *talkId, int32_t time);
61 int32_t VocalTract_empty(
VocalTract *talkId );
62 int32_t VocalTract_sample_ptr(
VocalTract *talkId );
63 int32_t VocalTract_aural_id(
VocalTract *talkId );
64 #endif //VocalTract_Class_Defined__ 66 #endif // DOXYGEN_SHOULD_SKIP_THIS 73 #ifndef talk_Class_Defined__ 74 #define talk_Class_Defined__ 78 #ifndef DOXYGEN_SHOULD_SKIP_THIS 102 volatile uint16_t glide, base_freq, gain, dilate;
103 volatile uint8_t vt[18], vtp[18], cbuf[300], speaker[10];
104 volatile uint8_t vocal_cog, aspirate, initial_k, initial_g, whisper, volume;
108 #endif // DOXYGEN_SHOULD_SKIP_THIS 251 #endif //talk_Class_Defined__ void talk_end(talk *talkId)
End a talk process and recover a cog.
talk * talk_run(int pin, int npin)
Run a talk process, uses a cog.
int32_t talk_spell(talk *talkId, char *ptr)
Pronounce the letters in a character string.
int32_t talk_say(talk *talkId, char *ptr)
Pronounce speech using strings spelled phonetically. Make sure to look over the function details (fol...
int32_t talk_set_speaker(talk *talkId, int32_t spkr, int32_t base)
Create speaker numbers, each with a unique tone.