Skip to content

Commit 08d8000

Browse files
committed
Release 1.2.1
1 parent 29a4d3a commit 08d8000

File tree

8 files changed

+28
-28
lines changed

8 files changed

+28
-28
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "speechify-api"
33

44
[tool.poetry]
55
name = "speechify-api"
6-
version = "1.2.0"
6+
version = "1.2.1"
77
description = "Official Speechify API SDK"
88
readme = "README.md"
99
authors = [

src/speechify/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def get_headers(self) -> typing.Dict[str, str]:
2222
headers: typing.Dict[str, str] = {
2323
"X-Fern-Language": "Python",
2424
"X-Fern-SDK-Name": "speechify-api",
25-
"X-Fern-SDK-Version": "1.2.0",
25+
"X-Fern-SDK-Version": "1.2.1",
2626
}
2727
headers["Authorization"] = f"Bearer {self._get_token()}"
2828
return headers

src/speechify/tts/types/created_voice.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
class CreatedVoice(UniversalBaseModel):
1313
avatar_image: typing.Optional[str] = None
14-
display_name: typing.Optional[str] = None
15-
gender: typing.Optional[CreatedVoiceGender] = None
16-
locale: typing.Optional[str] = None
17-
id: typing.Optional[str] = None
18-
models: typing.Optional[typing.List[CreateVoiceModel]] = None
19-
type: typing.Optional[CreatedVoiceType] = None
14+
display_name: str
15+
gender: CreatedVoiceGender
16+
locale: str
17+
id: str
18+
models: typing.List[CreateVoiceModel]
19+
type: CreatedVoiceType
2020

2121
if IS_PYDANTIC_V2:
2222
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2

src/speechify/tts/types/get_speech_response.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
# This file was auto-generated by Fern from our API Definition.
22

33
from ...core.pydantic_utilities import UniversalBaseModel
4-
import typing
54
import pydantic
65
from .get_speech_response_audio_format import GetSpeechResponseAudioFormat
76
from .speech_marks import SpeechMarks
87
from ...core.pydantic_utilities import IS_PYDANTIC_V2
8+
import typing
99

1010

1111
class GetSpeechResponse(UniversalBaseModel):
12-
audio_data: typing.Optional[str] = pydantic.Field(default=None)
12+
audio_data: str = pydantic.Field()
1313
"""
1414
Synthesized speech audio, Base64-encoded
1515
"""
1616

17-
audio_format: typing.Optional[GetSpeechResponseAudioFormat] = pydantic.Field(default=None)
17+
audio_format: GetSpeechResponseAudioFormat = pydantic.Field()
1818
"""
1919
The format of the audio data
2020
"""
2121

22-
billable_characters_count: typing.Optional[int] = pydantic.Field(default=None)
22+
billable_characters_count: int = pydantic.Field()
2323
"""
2424
The number of billable characters processed in the request.
2525
"""
2626

27-
speech_marks: typing.Optional[SpeechMarks] = None
27+
speech_marks: SpeechMarks
2828

2929
if IS_PYDANTIC_V2:
3030
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2

src/speechify/tts/types/get_voice.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111

1212
class GetVoice(UniversalBaseModel):
1313
avatar_image: typing.Optional[str] = None
14-
display_name: typing.Optional[str] = None
15-
gender: typing.Optional[GetVoiceGender] = None
16-
locale: typing.Optional[str] = None
17-
id: typing.Optional[str] = None
18-
models: typing.Optional[typing.List[GetVoicesModel]] = None
14+
display_name: str
15+
gender: GetVoiceGender
16+
locale: str
17+
id: str
18+
models: typing.List[GetVoicesModel]
1919
preview_audio: typing.Optional[str] = None
2020
tags: typing.Optional[typing.List[str]] = None
21-
type: typing.Optional[GetVoiceType] = None
21+
type: GetVoiceType
2222

2323
if IS_PYDANTIC_V2:
2424
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2

src/speechify/tts/types/get_voice_language.py

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

88

99
class GetVoiceLanguage(UniversalBaseModel):
10-
locale: typing.Optional[str] = None
10+
locale: str
1111
preview_audio: typing.Optional[str] = None
1212

1313
if IS_PYDANTIC_V2:

src/speechify/tts/types/get_voices_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010

1111
class GetVoicesModel(UniversalBaseModel):
12-
languages: typing.Optional[typing.List[GetVoiceLanguage]] = None
13-
name: typing.Optional[GetVoicesModelName] = None
12+
languages: typing.List[GetVoiceLanguage]
13+
name: GetVoicesModelName
1414

1515
if IS_PYDANTIC_V2:
1616
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2

src/speechify/tts/types/speech_marks.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ class SpeechMarks(UniversalBaseModel):
1212
It is used to annotate the audio data with metadata about the synthesis process, like word timing or phoneme details.
1313
"""
1414

15-
chunks: typing.Optional[typing.List[NestedChunk]] = pydantic.Field(default=None)
15+
chunks: typing.List[NestedChunk] = pydantic.Field()
1616
"""
1717
Array of NestedChunk, each providing detailed segment information within the synthesized speech.
1818
"""
1919

20-
end: typing.Optional[int] = None
21-
end_time: typing.Optional[float] = None
22-
start: typing.Optional[int] = None
23-
start_time: typing.Optional[float] = None
24-
type: typing.Optional[str] = None
20+
end: int
21+
end_time: float
22+
start: int
23+
start_time: float
24+
type: str
2525
value: typing.Optional[str] = None
2626

2727
if IS_PYDANTIC_V2:

0 commit comments

Comments
 (0)