]> git.bts.cx Git - benzene.git/blob - src/bz/audio/speech.h
Fixed Aseprite rendering system
[benzene.git] / src / bz / audio / speech.h
1 #ifndef BZ_AUDIO_SPEECH_H
2 #define BZ_AUDIO_SPEECH_H
3
4 #include <bz/memory/arena.h>
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 struct BZAudioVoiceDetails {
11 uint32_t rate;
12 uint8_t channels;
13 uint32_t maxSamples;
14 };
15 typedef struct BZAudioVoiceDetails BZAudioVoiceDetails;
16
17 typedef struct BZAudioVoice BZAudioVoice;
18
19 extern BZAudioVoice *bzAudioLoadSpeechVoice(BZAudioVoiceDetails *detailsOut, BZMemoryArenaID arena, const char *identifierFmt, ...);
20 extern size_t bzAudioGenerateSpeech(BZAudioVoice *voice, short *dst, size_t dstSize, const char *speechFmt, ...);
21
22 #ifdef __cplusplus
23 }
24 #endif
25
26 #endif