mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
remove commented-out local playback code in i2s-audo media_player
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
cebd396904
commit
5981185fe1
1 changed files with 0 additions and 9 deletions
|
@ -282,15 +282,6 @@ bool I2SAudioMediaPlayer::connecttouri_(const std::string &uri) {
|
|||
return this->audio_->connecttohost(uri.c_str());
|
||||
}
|
||||
|
||||
// local file?
|
||||
if (uri.find("file://", 0) == 0) {
|
||||
// format: file://<path>
|
||||
// const std::string path = uri.substr(7);
|
||||
// ESP_LOGD(TAG, "ConnectTo File '%s'", path.c_str());
|
||||
// return this->audio_->connecttoFS(?, uri.c_str() + 7);
|
||||
return false;
|
||||
}
|
||||
|
||||
// text to speech?
|
||||
if (uri.find("tts://", 0) == 0) {
|
||||
// format: tts://<lang>:<text>
|
||||
|
|
Loading…
Reference in a new issue