You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
558 B
24 lines
558 B
/*
|
|
* Copyright 2024 jacqueline <me@jacqueline.id.au>
|
|
*
|
|
* SPDX-License-Identifier: GPL-3.0-only
|
|
*/
|
|
|
|
#include "tts/player.hpp"
|
|
|
|
#include "esp_log.h"
|
|
|
|
namespace tts {
|
|
|
|
[[maybe_unused]] static constexpr char kTag[] = "ttsplay";
|
|
|
|
Player::Player(tasks::WorkerPool& worker,
|
|
drivers::PcmBuffer& output,
|
|
audio::FatfsStreamFactory& factory)
|
|
: bg_(worker), stream_factory_(factory), output_(output) {}
|
|
|
|
auto Player::playFile(const std::string& path) -> void {
|
|
ESP_LOGI(kTag, "playing '%s'", path.c_str());
|
|
}
|
|
|
|
} // namespace tts
|
|
|