Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ESP32-audioI2S
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ESP32-audioI2S
Commits
b70a3032
Unverified
Commit
b70a3032
authored
Oct 08, 2022
by
Wolle
Committed by
GitHub
Oct 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
internal DAC works with Arduino V2.0.5
parent
2191b6c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
src/Audio.cpp
src/Audio.cpp
+8
-3
src/Audio.h
src/Audio.h
+2
-2
No files found.
src/Audio.cpp
View file @
b70a3032
...
...
@@ -3,8 +3,8 @@
*
* Created on: Oct 26.2018
*
* Version 2.0.6
f
* Updated on: Oct 0
5
.2022
* Version 2.0.6
g
* Updated on: Oct 0
8
.2022
* Author: Wolle (schreibfaul1)
*
*/
...
...
@@ -187,7 +187,12 @@ Audio::Audio(bool internalDAC /* = false */, uint8_t channelEnabled /* = I2S_DAC
m_i2s_config
.
mode
=
(
i2s_mode_t
)(
I2S_MODE_MASTER
|
I2S_MODE_TX
|
I2S_MODE_DAC_BUILT_IN
);
#if ESP_ARDUINO_VERSION_MAJOR >= 2
m_i2s_config
.
communication_format
=
(
i2s_comm_format_t
)(
I2S_COMM_FORMAT_STAND_I2S
);
// vers >= 2.0.0
#if ESP_ARDUINO_VERSION_PATCH == 0
m_i2s_config
.
communication_format
=
(
i2s_comm_format_t
)(
I2S_COMM_FORMAT_STAND_I2S
);
// vers == 2.0.0
#else
// V2.0.1 ... V2.0.4 will not work
m_i2s_config
.
communication_format
=
(
i2s_comm_format_t
)(
I2S_COMM_FORMAT_STAND_MSB
);
// vers >= 2.0.5
#endif
#else
m_i2s_config
.
communication_format
=
(
i2s_comm_format_t
)(
I2S_COMM_FORMAT_I2S_MSB
);
#endif
...
...
src/Audio.h
View file @
b70a3032
...
...
@@ -2,7 +2,7 @@
* Audio.h
*
* Created on: Oct 28,2018
* Updated on: O
dt 05
,2022
* Updated on: O
ct 08
,2022
* Author: Wolle (schreibfaul1)
*/
...
...
@@ -164,7 +164,7 @@ public:
~
Audio
();
void
setBufsize
(
int
rambuf_sz
,
int
psrambuf_sz
);
bool
connecttohost
(
const
char
*
host
,
const
char
*
user
=
""
,
const
char
*
pwd
=
""
);
bool
connecttospeech
(
const
char
*
speech
,
const
char
*
lang
);
bool
connecttomarytts
(
const
char
*
speech
,
const
char
*
lang
,
const
char
*
voice
);
bool
connecttoFS
(
fs
::
FS
&
fs
,
const
char
*
path
,
uint32_t
resumeFilePos
=
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment