← Back to C-Kernel-Engine Docs Doxygen Source Documentation
 
Loading...
Searching...
No Matches
ckernel_audio_duration_expand_token_major.h
Go to the documentation of this file.
1#ifndef CKERNEL_AUDIO_DURATION_EXPAND_TOKEN_MAJOR_H
2#define CKERNEL_AUDIO_DURATION_EXPAND_TOKEN_MAJOR_H
3
4#include <stddef.h>
5#include <stdint.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11/* Expand token-major [tokens, channels] features into channel-major
12 * [channels, valid_frames]. Strides describe physical storage; capacities are
13 * element counts. All geometry and durations are checked before any write.
14 * Buffers are caller owned and must not overlap. Output padding is untouched.
15 * Returns CK_AUDIO_EXTENT_* from ckernel_tts.h. */
17 const float *features,
18 size_t input_elements,
19 size_t channels,
20 size_t phoneme_count,
21 size_t input_stride,
22 const int32_t *durations,
23 size_t expanded_frames,
24 float *output,
25 size_t output_elements,
26 size_t output_stride);
27
28#ifdef __cplusplus
29}
30#endif
31
32#endif
int audio_duration_expand_token_major_f32(const float *features, size_t input_elements, size_t channels, size_t phoneme_count, size_t input_stride, const int32_t *durations, size_t expanded_frames, float *output, size_t output_elements, size_t output_stride)