vocalstack 1.0.0a4__tar.gz → 1.0.0a8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {vocalstack-1.0.0a4 → vocalstack-1.0.0a8}/PKG-INFO +1 -1
- {vocalstack-1.0.0a4 → vocalstack-1.0.0a8}/SKILL.md +2 -2
- {vocalstack-1.0.0a4 → vocalstack-1.0.0a8}/pyproject.toml +1 -1
- {vocalstack-1.0.0a4 → vocalstack-1.0.0a8}/skills/vocalstack/SKILL.md +2 -2
- {vocalstack-1.0.0a4 → vocalstack-1.0.0a8}/src/vocalstack/__init__.py +1 -1
- {vocalstack-1.0.0a4 → vocalstack-1.0.0a8}/src/vocalstack/_models.py +21 -3
- {vocalstack-1.0.0a4 → vocalstack-1.0.0a8}/src/vocalstack/resources.py +3 -0
- {vocalstack-1.0.0a4 → vocalstack-1.0.0a8}/.gitignore +0 -0
- {vocalstack-1.0.0a4 → vocalstack-1.0.0a8}/LICENSE +0 -0
- {vocalstack-1.0.0a4 → vocalstack-1.0.0a8}/README.md +0 -0
- {vocalstack-1.0.0a4 → vocalstack-1.0.0a8}/src/vocalstack/_http.py +0 -0
- {vocalstack-1.0.0a4 → vocalstack-1.0.0a8}/src/vocalstack/client.py +0 -0
- {vocalstack-1.0.0a4 → vocalstack-1.0.0a8}/src/vocalstack/errors.py +0 -0
- {vocalstack-1.0.0a4 → vocalstack-1.0.0a8}/src/vocalstack/realtime.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: vocalstack
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.0a8
|
|
4
4
|
Summary: VocalStack speech API SDK (asyncio): one client grouped by resource, typed models from the API contract, realtime WebSocket streaming.
|
|
5
5
|
Project-URL: Homepage, https://vocalstack.com
|
|
6
6
|
License-Expression: MIT
|
|
@@ -96,7 +96,7 @@ async def main(path): # mp3, wav, flac, ogg, m4a, mp4 ...
|
|
|
96
96
|
file=path, # a path, bytes, or an open binary file
|
|
97
97
|
settings={"spokenLanguage": "en", "speakerLabels": "on"}, # both optional; "auto" (default) | "on" | "off"
|
|
98
98
|
# Off unless asked for: settings summary, title, summaryTranslations,
|
|
99
|
-
#
|
|
99
|
+
# translationTts (text-to-speech of translations), and share_link=True (a public share link).
|
|
100
100
|
)
|
|
101
101
|
job = await vs.jobs.wait(tx.job.recording_id)
|
|
102
102
|
if job.state != "done":
|
|
@@ -226,7 +226,7 @@ except VocalStackError as e:
|
|
|
226
226
|
## More
|
|
227
227
|
|
|
228
228
|
- The other groups: `vs.transcriptions` (`list`, `get`, `update`, `archive`,
|
|
229
|
-
`restore`, `purge`, `list_share_links`, `create_share_link`), `vs.recordings`
|
|
229
|
+
`restore`, `purge`, `list_share_links`, `create_share_link`, `list_scripts`), `vs.recordings`
|
|
230
230
|
(`get`, `summarize`, `summary`, `translation`, `audio_url`, `subscribe`),
|
|
231
231
|
`vs.corrections`, `vs.share_links`, `vs.speakers`, `vs.voices`, `vs.broadcasts`,
|
|
232
232
|
`vs.me` (`get`, `usage`), `vs.languages`, `vs.rtmp`, `vs.events`, `vs.meta`.
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "vocalstack"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.0a8"
|
|
8
8
|
description = "VocalStack speech API SDK (asyncio): one client grouped by resource, typed models from the API contract, realtime WebSocket streaming."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -96,7 +96,7 @@ async def main(path): # mp3, wav, flac, ogg, m4a, mp4 ...
|
|
|
96
96
|
file=path, # a path, bytes, or an open binary file
|
|
97
97
|
settings={"spokenLanguage": "en", "speakerLabels": "on"}, # both optional; "auto" (default) | "on" | "off"
|
|
98
98
|
# Off unless asked for: settings summary, title, summaryTranslations,
|
|
99
|
-
#
|
|
99
|
+
# translationTts (text-to-speech of translations), and share_link=True (a public share link).
|
|
100
100
|
)
|
|
101
101
|
job = await vs.jobs.wait(tx.job.recording_id)
|
|
102
102
|
if job.state != "done":
|
|
@@ -226,7 +226,7 @@ except VocalStackError as e:
|
|
|
226
226
|
## More
|
|
227
227
|
|
|
228
228
|
- The other groups: `vs.transcriptions` (`list`, `get`, `update`, `archive`,
|
|
229
|
-
`restore`, `purge`, `list_share_links`, `create_share_link`), `vs.recordings`
|
|
229
|
+
`restore`, `purge`, `list_share_links`, `create_share_link`, `list_scripts`), `vs.recordings`
|
|
230
230
|
(`get`, `summarize`, `summary`, `translation`, `audio_url`, `subscribe`),
|
|
231
231
|
`vs.corrections`, `vs.share_links`, `vs.speakers`, `vs.voices`, `vs.broadcasts`,
|
|
232
232
|
`vs.me` (`get`, `usage`), `vs.languages`, `vs.rtmp`, `vs.events`, `vs.meta`.
|
|
@@ -289,7 +289,7 @@ class Limits2(_Base):
|
|
|
289
289
|
creates_per_hour: Optional[int] = Field(default=None, alias="createsPerHour")
|
|
290
290
|
creates_per_hour_unpaid: Optional[int] = Field(default=None, alias="createsPerHourUnpaid")
|
|
291
291
|
max_file_bytes: Optional[int] = Field(default=None, alias="maxFileBytes")
|
|
292
|
-
|
|
292
|
+
max_transcription_seconds: Optional[int] = Field(default=None, alias="maxTranscriptionSeconds")
|
|
293
293
|
questions_per_day: Optional[int] = Field(default=None, alias="questionsPerDay")
|
|
294
294
|
requests_per_min: Optional[int] = Field(default=None, alias="requestsPerMin")
|
|
295
295
|
retention_audio_days: Optional[int] = Field(default=None, alias="retentionAudioDays")
|
|
@@ -496,7 +496,7 @@ design's settings sheet): what a recording made in it starts with."""
|
|
|
496
496
|
summary: Optional[bool] = None
|
|
497
497
|
summary_translations: Optional[bool] = Field(default=None, alias="summaryTranslations")
|
|
498
498
|
title: Optional[bool] = None
|
|
499
|
-
|
|
499
|
+
translation_tts: Optional[bool] = Field(default=None, alias="translationTts")
|
|
500
500
|
voice_by_lang: Optional[Dict[str, str]] = Field(default=None, alias="voiceByLang")
|
|
501
501
|
voice_cloning: Optional[bool] = Field(default=None, alias="voiceCloning")
|
|
502
502
|
voice_cloning_consent: Optional[bool] = Field(default=None, alias="voiceCloningConsent")
|
|
@@ -837,7 +837,7 @@ class SettingsPatch(_Base):
|
|
|
837
837
|
summary: Optional[bool] = None
|
|
838
838
|
summary_translations: Optional[bool] = Field(default=None, alias="summaryTranslations")
|
|
839
839
|
title: Optional[bool] = None
|
|
840
|
-
|
|
840
|
+
translation_tts: Optional[bool] = Field(default=None, alias="translationTts")
|
|
841
841
|
voice_by_lang: Optional[Dict[str, str]] = Field(default=None, alias="voiceByLang")
|
|
842
842
|
voice_cloning: Optional[bool] = Field(default=None, alias="voiceCloning")
|
|
843
843
|
voice_cloning_consent: Optional[bool] = Field(default=None, alias="voiceCloningConsent")
|
|
@@ -1315,6 +1315,23 @@ class RtmpStatus(_Base):
|
|
|
1315
1315
|
stream_key: Optional[str] = Field(default=None, alias="streamKey")
|
|
1316
1316
|
|
|
1317
1317
|
|
|
1318
|
+
class Script(_Base):
|
|
1319
|
+
"""The broadcast or transcription something belongs to (a script, a share
|
|
1320
|
+
link): exactly one of `broadcastId` and `transcriptionId` is set.
|
|
1321
|
+
Flattened into its owner."""
|
|
1322
|
+
|
|
1323
|
+
broadcast_id: Optional[str] = Field(default=None, alias="broadcastId")
|
|
1324
|
+
created_at: str = Field(alias="createdAt")
|
|
1325
|
+
id: str
|
|
1326
|
+
locked: bool
|
|
1327
|
+
recording_id: Optional[str] = Field(default=None, alias="recordingId")
|
|
1328
|
+
scheduled_at: Optional[str] = Field(default=None, alias="scheduledAt")
|
|
1329
|
+
text: str
|
|
1330
|
+
transcription_id: Optional[str] = Field(default=None, alias="transcriptionId")
|
|
1331
|
+
updated_at: str = Field(alias="updatedAt")
|
|
1332
|
+
word_count: int = Field(alias="wordCount")
|
|
1333
|
+
|
|
1334
|
+
|
|
1318
1335
|
class SearchHit(_Base):
|
|
1319
1336
|
link_code: str = Field(alias="linkCode")
|
|
1320
1337
|
link_name: str = Field(alias="linkName")
|
|
@@ -1793,6 +1810,7 @@ class VoiceTrack(_Base):
|
|
|
1793
1810
|
duration_s: Optional[float] = Field(default=None, alias="durationS")
|
|
1794
1811
|
error: Optional[str] = None
|
|
1795
1812
|
lang: str
|
|
1813
|
+
original: Optional[List[int]] = None
|
|
1796
1814
|
state: str
|
|
1797
1815
|
voice: Optional[str] = None
|
|
1798
1816
|
voice_key: str = Field(alias="voiceKey")
|
|
@@ -150,6 +150,9 @@ class _ParentResource(_Group):
|
|
|
150
150
|
async def list_share_links(self, id: str) -> List[m.ShareLink]:
|
|
151
151
|
return _many(m.ShareLink, await self._t.json("GET", self._path(id, "/share-links")), "links")
|
|
152
152
|
|
|
153
|
+
async def list_scripts(self, id: str) -> List[m.Script]:
|
|
154
|
+
return _many(m.Script, await self._t.json("GET", self._path(id, "/scripts")), "scripts")
|
|
155
|
+
|
|
153
156
|
async def create_share_link(self, id: str, **fields: Any) -> m.ShareLink:
|
|
154
157
|
body = _body(m.CreateShareLink, fields)
|
|
155
158
|
return _one(m.ShareLink, await self._t.json("POST", self._path(id, "/share-links"), json_body=body))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|