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
5ab8fabe
Unverified
Commit
5ab8fabe
authored
Jan 30, 2023
by
Wolle
Committed by
GitHub
Jan 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Audio.cpp
parent
f70052bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/Audio.cpp
src/Audio.cpp
+2
-2
No files found.
src/Audio.cpp
View file @
5ab8fabe
...
...
@@ -684,7 +684,7 @@ bool Audio::connecttoSD(const char* path, uint32_t resumeFilePos) {
//---------------------------------------------------------------------------------------------------------------------
bool
Audio
::
connecttoFS
(
fs
::
FS
&
fs
,
const
char
*
path
,
uint32_t
resumeFilePos
)
{
xSemaphoreTake
(
mutex_audio
,
portMAX_DELAY
);
xSemaphoreTake
Recursive
(
mutex_audio
,
portMAX_DELAY
);
// #3
if
(
strlen
(
path
)
>
255
){
xSemaphoreGive
(
mutex_audio
);
...
...
@@ -757,7 +757,7 @@ bool Audio::connecttoFS(fs::FS &fs, const char* path, uint32_t resumeFilePos) {
//---------------------------------------------------------------------------------------------------------------------
bool
Audio
::
connecttospeech
(
const
char
*
speech
,
const
char
*
lang
){
xSemaphoreTake
(
mutex_audio
,
portMAX_DELAY
);
xSemaphoreTake
Recursive
(
mutex_audio
,
portMAX_DELAY
);
setDefaults
();
char
host
[]
=
"translate.google.com.vn"
;
...
...
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