Skip to content

Commit

Permalink
samples/python/console: add missing doc string, fix the menu (#386)
Browse files Browse the repository at this point in the history
* samples/python/console/speech_synthesis_sample.py: add doc string

* fix run-gradle.sh
  • Loading branch information
mahilleb-msft authored Sep 27, 2019
1 parent 1d1b13a commit 6805d96
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
16 changes: 15 additions & 1 deletion ci/run-gradle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,21 @@ echo $PACKAGE_PATH

set -e -x -o pipefail

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

find . -name gradlew.bat -printf '%h\n' > "$PROJECTS_FILE"

readarray -t PROJECTS < "$PROJECTS_FILE"

for dir in "${PROJECTS[@]}"; do
echo $dir
Expand Down
3 changes: 3 additions & 0 deletions samples/python/console/speech_synthesis_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

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

try:
import azure.cognitiveservices.speech as speechsdk
Expand Down

0 comments on commit 6805d96

Please sign in to comment.