Arduino ESpeak-NG
Data Structures | Functions | Variables
audio_object.h File Reference
#include <stdio.h>
#include "Print.h"
#include "audio.h"

Go to the source code of this file.

Data Structures

struct  audio_info
 info about sample rate and channels and output stream More...
 
struct  audio_object
 pcaudiolib implementation for microcontrollers using the arduino Print assigned by espeak_set_audio_output() as output More...
 

Functions

void espeak_set_audio_output (Print *p)
 Defines the audio output. More...
 
audio_info espeak_get_audio_info ()
 Provides the audio information. More...
 

Variables

audio_info espeak_audio_info
 
Print * audio_out
 
void(* audio_stream_factory_callback )(audio_info *cfg)
 Callback to define the AudioStream. More...
 
void(* audio_stream_start_callback )()
 
void(* audio_stream_stop_callback )()
 

Function Documentation

◆ espeak_get_audio_info()

audio_info espeak_get_audio_info ( )

Provides the audio information.

◆ espeak_set_audio_output()

void espeak_set_audio_output ( Print *  p)

Defines the audio output.

Variable Documentation

◆ audio_out

Print* audio_out
extern

◆ audio_stream_factory_callback

void(* audio_stream_factory_callback) (audio_info *cfg) ( audio_info cfg)
extern

Callback to define the AudioStream.

◆ audio_stream_start_callback

void(* audio_stream_start_callback) () ( )
extern

◆ audio_stream_stop_callback

void(* audio_stream_stop_callback) () ( )
extern

◆ espeak_audio_info

audio_info espeak_audio_info
extern