34#include <NDEVR/SoundManager.h>
39 class SoundEffectTask;
48#if NDEVR_SUPPORTS_THREADING
88 QTextToSpeech* m_speech =
nullptr;
The equivelent of std::vector but with a bit more control.
A hash-based key-value store, useful for quick associative lookups.
Adds Sound generated via the Qt Framework to the application.
SoundEffectTask * soundEffectTask(const StringView &sound)
Gets or creates a threaded sound effect task for the given sound.
virtual void enableTextToSpeech(bool enable) override
Enables or disables text-to-speech.
virtual bool supportsTextToSpeech() const override
Checks whether text-to-speech is supported on this system.
bool playSound(const StringView &sound) override
Plays a sound by identifier.
static void SetupSystem()
Sets up the Qt sound system and registers this factory.
virtual Buffer< Sound > availableSounds() override
Gets all available sound effects.
bool textToSpeech(const TextToSpeechRequest &speech) override
Speaks the given text using text-to-speech.
QSoundEffect * soundEffect(const StringView &sound)
Gets or creates a QSoundEffect for the given sound identifier.
virtual bool textToSpeechEnabled() const override
Checks whether text-to-speech is currently enabled.
Produces sound on the host Device, if possible.
The core String View class for the NDEVR API.
The primary namespace for the NDEVR SDK.
Allows the user to make a request for text-to-speech.