Skip to content

Commit aa48859

Browse files
author
Jerjou Cheng
committed
Add undersscore to speechrest.py for consistency
1 parent b187310 commit aa48859

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

speech/api/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ for more information.
3939

4040
### Install the dependencies
4141

42-
* If you're running the `speechrest.py` sample:
42+
* If you're running the `speech_rest.py` sample:
4343

4444
```sh
45-
$ pip install requirements-speechrest.txt
45+
$ pip install requirements-speech_rest.txt
4646
```
4747

4848
* If you're running the `speech_streaming.py` sample:
@@ -53,10 +53,10 @@ for more information.
5353
5454
## Run the example
5555
56-
* To run the `speechrest.py` sample:
56+
* To run the `speech_rest.py` sample:
5757
5858
```sh
59-
$ python speechrest.py resources/audio.raw
59+
$ python speech_rest.py resources/audio.raw
6060
```
6161
6262
You should see a response with the transcription result.
File renamed without changes.

speech/api/speechrest_test.py renamed to speech/api/speech_rest_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
import re
1515

16-
from speechrest import main
16+
from speech_rest import main
1717

1818

1919
def test_main(resource, capsys):

speech/api/speech_streaming_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def mock_audio_stream(channels, rate, chunk):
5353
return mock_audio_stream
5454

5555

56+
# grpc doesn't yet support python3 https://github.com/grpc/grpc/issues/282
5657
@pytest.mark.skipif(
5758
sys.version_info >= (3, 0), reason="can't get grpc lib to work in python3")
5859
def test_main(resource, monkeypatch, capsys):

0 commit comments

Comments
 (0)