LIBRARY ZX Currah uSpeech (zxcurrah.h)
Paul Humphreys edited this page Feb 7, 2021
·
5 revisions
Header | {z88dk}/include/zxcurrah.h |
Source | {z88dk}/libsrc/spectrum/currah_detect.asm, {z88dk}/libsrc/spectrum/currah_speech.asm, {z88dk}/libsrc/spectrum/currah_direct.asm |
Include | #include <zxcurrah.h> |
Linking | n/a |
Compile | n/a |
Comments |
The Currah USpeech is a voice synthetizer for the ZX Spectrum. The current API permits both a low level and an high level control, plus an hardware detection tool.
Returns TRUE if the interface is present
Talk using the high level BASIC interface
Talk using the allophone codes (see header file)
/*
ZX Spectrum and the Currah uSpeech lib demo
*/
#include `<spectrum.h>`
#include `<zxcurrah.h>`
#include `<stdio.h>`
#include `<stdlib.h>`
/* 'Hello" word for direct mode */
char hello[] = {PH_H, PH_E | PH_PITCH, PH_LL, PH_O, PH___, PH_END};
int main()
{
if ( !currah_detect() )
{
printf ("CURRAH uSpeech is present\n");
}
else
{
printf ("Hello (from the direct engine)\n");
currah_direct (hello);
sleep (1);
printf ("\nHello (internal conversion functions)\n");
currah_speech ("hE(ll)o");
sleep (1);
printf ("\n\nI am a ZX Spectrum talking\n");
currah_speech ("aY em a zed eks spEctrum tokin");
}
printf ("\n\n\n(Program end).\n");
}
- Overview
- Platform List
- Unsupported Platforms
- i8080/5 Support
- Homebrew hardware quickstart
- Retargetting
- Building the libraries
- Clang support
- Pragmas
- Adding to Classic
- Introduction
- Library Configuration
- CRT
- Header Files
- Assembly Language
- Library in Depth
- Embedded Platform
- Adding to NewLib
- Benchmarks
- Datatypes
- Debugging
- Decompression
- More than 64k
- Deficiencies
- Compiling Larger Applications
- Importing routines written in 8080 assembly mnemonics
- Using CP/M libraries in REL format with z88dk
- Writing optimal code
- Speeding up Compilation
- CMake usage