Skip to content

Commit 6805d96

Browse files
samples/python/console: add missing doc string, fix the menu (#386)
* samples/python/console/speech_synthesis_sample.py: add doc string * fix run-gradle.sh
1 parent 1d1b13a commit 6805d96

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

ci/run-gradle.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,21 @@ echo $PACKAGE_PATH
1616

1717
set -e -x -o pipefail
1818

19-
readarray -t PROJECTS < <(find . -name gradlew.bat -printf '%h\n')
19+
# We were using process substitution before for find/readarray, which started failing.
20+
# Possibly related to https://github.com/git-for-windows/git/issues/2291, although
21+
# we could not correlate with the software running on the hosted agents.
22+
PROJECTS_FILE=$(mktemp proj-XXXXXX)
23+
on_exit() {
24+
local exit_code=$?
25+
rm -f "$PROJECTS_FILE"
26+
printf "Exiting with exit code %s\n" $exit_code
27+
exit $exit_code
28+
}
29+
trap on_exit EXIT
30+
31+
find . -name gradlew.bat -printf '%h\n' > "$PROJECTS_FILE"
32+
33+
readarray -t PROJECTS < "$PROJECTS_FILE"
2034

2135
for dir in "${PROJECTS[@]}"; do
2236
echo $dir

samples/python/console/speech_synthesis_sample.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
# Copyright (c) Microsoft. All rights reserved.
55
# Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
6+
"""
7+
Speech synthesis samples for the Microsoft Cognitive Services Speech SDK
8+
"""
69

710
try:
811
import azure.cognitiveservices.speech as speechsdk

0 commit comments

Comments
 (0)