File tree Expand file tree Collapse file tree 6 files changed +9
-33
lines changed Expand file tree Collapse file tree 6 files changed +9
-33
lines changed Original file line number Diff line number Diff line change 35
35
36
36
- name : Test
37
37
run : poetry run pytest -rP .
38
-
39
- publish :
40
- needs : [compile, test]
41
- if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
42
- runs-on : ubuntu-20.04
43
- steps :
44
- - name : Checkout repo
45
- uses : actions/checkout@v3
46
- - name : Set up python
47
- uses : actions/setup-python@v4
48
- with :
49
- python-version : 3.8
50
- - name : Bootstrap poetry
51
- run : |
52
- curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
53
- - name : Install dependencies
54
- run : poetry install
55
- - name : Publish to pypi
56
- run : |
57
- poetry config repositories.remote https://upload.pypi.org/legacy/
58
- poetry --no-interaction -v publish --build --repository remote --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD"
59
- env :
60
- PYPI_USERNAME : ${{ secrets.PYPI_USERNAME }}
61
- PYPI_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
Original file line number Diff line number Diff line change 1
1
# Speechifyinc Python Library
2
2
3
3
[ ![ fern shield] ( https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen )] ( https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fspeechifyinc%2Fspeechify-api-sdk-python )
4
- [ ![ pypi] ( https://img.shields.io/pypi/v/speechify-api )] ( https://pypi.python.org/pypi/speechify-api )
4
+ [ ![ pypi] ( https://img.shields.io/pypi/v/speechifyinc )] ( https://pypi.python.org/pypi/speechifyinc )
5
5
6
6
The Speechifyinc Python library provides convenient access to the Speechifyinc API from Python.
7
7
8
8
## Installation
9
9
10
10
``` sh
11
- pip install speechify-api
11
+ pip install speechifyinc
12
12
```
13
13
14
14
## Reference
Original file line number Diff line number Diff line change 1
1
[project ]
2
- name = " speechify-api "
2
+ name = " speechifyinc "
3
3
4
4
[tool .poetry ]
5
- name = " speechify-api "
6
- version = " 0.0.128 "
5
+ name = " speechifyinc "
6
+ version = " 0.0.0 "
7
7
description = " "
8
8
readme = " README.md"
9
9
authors = []
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ def __init__(
21
21
def get_headers (self ) -> typing .Dict [str , str ]:
22
22
headers : typing .Dict [str , str ] = {
23
23
"X-Fern-Language" : "Python" ,
24
- "X-Fern-SDK-Name" : "speechify-api " ,
25
- "X-Fern-SDK-Version" : "0.0.128 " ,
24
+ "X-Fern-SDK-Name" : "speechifyinc " ,
25
+ "X-Fern-SDK-Version" : "0.0.0 " ,
26
26
}
27
27
headers ["Authorization" ] = f"Bearer { self ._get_token ()} "
28
28
return headers
Original file line number Diff line number Diff line change 9
9
10
10
11
11
class GetSpeechResponse (UniversalBaseModel ):
12
- audio_data : typing .Optional [typing . List [ int ] ] = pydantic .Field (default = None )
12
+ audio_data : typing .Optional [str ] = pydantic .Field (default = None )
13
13
"""
14
14
Synthesized speech audio, Base64-encoded
15
15
"""
Original file line number Diff line number Diff line change 1
1
from importlib import metadata
2
2
3
- __version__ = metadata .version ("speechify-api " )
3
+ __version__ = metadata .version ("speechifyinc " )
You can’t perform that action at this time.
0 commit comments