Skip to content

Commit 9b08fbc

Browse files
magic-hour-sdk-bot[bot]sdk-github-actions[bot]davidhu2000
authored
feat: add audio project apis and voice generator API (#98)
Co-authored-by: sdk-github-actions[bot] <sdk-github-actions[bot]@users.noreply.github.com> Co-authored-by: David Hu <[email protected]>
1 parent 6d21948 commit 9b08fbc

File tree

50 files changed

+1040
-31
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1040
-31
lines changed

.sdk.json

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "04028224-d427-4b12-b611-419d009cbc8f",
2+
"id": "7b8b55a1-18db-45f0-b4c3-6334ece8200a",
33
"tracked_paths": [
44
{
55
"editable": true,
@@ -161,6 +161,18 @@
161161
"editable": true,
162162
"path": "magic_hour/resources/v1/ai_talking_photo/client.py"
163163
},
164+
{
165+
"editable": true,
166+
"path": "magic_hour/resources/v1/ai_voice_generator/README.md"
167+
},
168+
{
169+
"editable": true,
170+
"path": "magic_hour/resources/v1/ai_voice_generator/__init__.py"
171+
},
172+
{
173+
"editable": true,
174+
"path": "magic_hour/resources/v1/ai_voice_generator/client.py"
175+
},
164176
{
165177
"editable": true,
166178
"path": "magic_hour/resources/v1/animation/README.md"
@@ -173,6 +185,18 @@
173185
"editable": true,
174186
"path": "magic_hour/resources/v1/animation/client.py"
175187
},
188+
{
189+
"editable": true,
190+
"path": "magic_hour/resources/v1/audio_projects/README.md"
191+
},
192+
{
193+
"editable": true,
194+
"path": "magic_hour/resources/v1/audio_projects/__init__.py"
195+
},
196+
{
197+
"editable": true,
198+
"path": "magic_hour/resources/v1/audio_projects/client.py"
199+
},
176200
{
177201
"editable": true,
178202
"path": "magic_hour/resources/v1/auto_subtitle_generator/README.md"
@@ -393,10 +417,26 @@
393417
"editable": false,
394418
"path": "magic_hour/types/models/v1_ai_talking_photo_create_response.py"
395419
},
420+
{
421+
"editable": false,
422+
"path": "magic_hour/types/models/v1_ai_voice_generator_create_response.py"
423+
},
396424
{
397425
"editable": false,
398426
"path": "magic_hour/types/models/v1_animation_create_response.py"
399427
},
428+
{
429+
"editable": false,
430+
"path": "magic_hour/types/models/v1_audio_projects_get_response.py"
431+
},
432+
{
433+
"editable": false,
434+
"path": "magic_hour/types/models/v1_audio_projects_get_response_downloads_item.py"
435+
},
436+
{
437+
"editable": false,
438+
"path": "magic_hour/types/models/v1_audio_projects_get_response_error.py"
439+
},
400440
{
401441
"editable": false,
402442
"path": "magic_hour/types/models/v1_auto_subtitle_generator_create_response.py"
@@ -597,6 +637,14 @@
597637
"editable": false,
598638
"path": "magic_hour/types/params/v1_ai_talking_photo_create_body_style.py"
599639
},
640+
{
641+
"editable": false,
642+
"path": "magic_hour/types/params/v1_ai_voice_generator_create_body.py"
643+
},
644+
{
645+
"editable": false,
646+
"path": "magic_hour/types/params/v1_ai_voice_generator_create_body_style.py"
647+
},
600648
{
601649
"editable": false,
602650
"path": "magic_hour/types/params/v1_animation_create_body.py"
@@ -773,10 +821,18 @@
773821
"editable": false,
774822
"path": "tests/test_v1_ai_talking_photo_client.py"
775823
},
824+
{
825+
"editable": false,
826+
"path": "tests/test_v1_ai_voice_generator_client.py"
827+
},
776828
{
777829
"editable": false,
778830
"path": "tests/test_v1_animation_client.py"
779831
},
832+
{
833+
"editable": false,
834+
"path": "tests/test_v1_audio_projects_client.py"
835+
},
780836
{
781837
"editable": false,
782838
"path": "tests/test_v1_auto_subtitle_generator_client.py"

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,21 @@ download_urls = result.downloads
208208
* [create](magic_hour/resources/v1/ai_talking_photo/README.md#create) - AI Talking Photo
209209
* [generate](magic_hour/resources/v1/ai_talking_photo/README.md#generate) - Ai Talking Photo Generate Workflow
210210

211+
### [v1.ai_voice_generator](magic_hour/resources/v1/ai_voice_generator/README.md)
212+
213+
* [create](magic_hour/resources/v1/ai_voice_generator/README.md#create) - AI Voice Generator
214+
211215
### [v1.animation](magic_hour/resources/v1/animation/README.md)
212216

213217
* [create](magic_hour/resources/v1/animation/README.md#create) - Animation
214218
* [generate](magic_hour/resources/v1/animation/README.md#generate) - Animation Generate Workflow
215219

220+
### [v1.audio_projects](magic_hour/resources/v1/audio_projects/README.md)
221+
222+
* [delete](magic_hour/resources/v1/audio_projects/README.md#delete) - Delete audio
223+
* [get](magic_hour/resources/v1/audio_projects/README.md#get) - Get audio details
224+
225+
216226
### [v1.auto_subtitle_generator](magic_hour/resources/v1/auto_subtitle_generator/README.md)
217227

218228
* [create](magic_hour/resources/v1/auto_subtitle_generator/README.md#create) - Auto Subtitle Generator

magic_hour/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
- [ai_photo_editor](resources/v1/ai_photo_editor/README.md) - ai_photo_editor
1515
- [ai_qr_code_generator](resources/v1/ai_qr_code_generator/README.md) - ai_qr_code_generator
1616
- [ai_talking_photo](resources/v1/ai_talking_photo/README.md) - ai_talking_photo
17+
- [ai_voice_generator](resources/v1/ai_voice_generator/README.md) - ai_voice_generator
1718
- [animation](resources/v1/animation/README.md) - animation
19+
- [audio_projects](resources/v1/audio_projects/README.md) - audio_projects
1820
- [auto_subtitle_generator](resources/v1/auto_subtitle_generator/README.md) - auto_subtitle_generator
1921
- [face_detection](resources/v1/face_detection/README.md) - face_detection
2022
- [face_swap](resources/v1/face_swap/README.md) - face_swap

magic_hour/environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Environment(enum.Enum):
66
"""Pre-defined base URLs for the API"""
77

88
ENVIRONMENT = "https://api.magichour.ai"
9-
MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.39.1"
9+
MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.40.0"
1010

1111

1212
def _get_base_url(

magic_hour/resources/v1/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
- [ai_photo_editor](ai_photo_editor/README.md) - ai_photo_editor
1515
- [ai_qr_code_generator](ai_qr_code_generator/README.md) - ai_qr_code_generator
1616
- [ai_talking_photo](ai_talking_photo/README.md) - ai_talking_photo
17+
- [ai_voice_generator](ai_voice_generator/README.md) - ai_voice_generator
1718
- [animation](animation/README.md) - animation
19+
- [audio_projects](audio_projects/README.md) - audio_projects
1820
- [auto_subtitle_generator](auto_subtitle_generator/README.md) - auto_subtitle_generator
1921
- [face_detection](face_detection/README.md) - face_detection
2022
- [face_swap](face_swap/README.md) - face_swap

magic_hour/resources/v1/ai_clothes_changer/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Module Functions
44

55

6+
67
<!-- CUSTOM DOCS START -->
78

89
### AI Clothes Changer Generate Workflow <a name="generate"></a>

magic_hour/resources/v1/ai_face_editor/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Module Functions
44

55

6+
67
<!-- CUSTOM DOCS START -->
78

89
### Ai Face Editor Generate Workflow <a name="generate"></a>

magic_hour/resources/v1/ai_gif_generator/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Module Functions
44

55

6+
67
<!-- CUSTOM DOCS START -->
78

89
### Ai Gif Generator Generate Workflow <a name="generate"></a>

magic_hour/resources/v1/ai_headshot_generator/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Module Functions
44

55

6+
67
<!-- CUSTOM DOCS START -->
78

89
### Ai Headshot Generator Generate Workflow <a name="generate"></a>

magic_hour/resources/v1/ai_image_editor/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Module Functions
44

55

6+
67
<!-- CUSTOM DOCS START -->
78

89
### Ai Image Editor Generate Workflow <a name="generate"></a>

0 commit comments

Comments
 (0)