File size: 4,896 Bytes
a1f83c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
### Dubify AI Backend API - VS Code REST Client Test Collection
### Base URL for Hugging Face Spaces Live Server
@baseUrl = https://abi3420-dubify-backend.hf.space

### 1. Root Status Endpoint
GET {{baseUrl}}/
Accept: application/json

###

### 2. API Health Check Endpoint
GET {{baseUrl}}/api/health
Accept: application/json

###

### 3. Text Translation Endpoint (English to Tamil)
POST {{baseUrl}}/api/translate/text
Content-Type: application/json

{
  "text": "Hello, welcome to Dubify AI speech transcription and video dubbing!",
  "target_lang": "ta"
}

###

### 4. AI Assistant Help Chatbot Endpoint
POST {{baseUrl}}/api/assistant/chat
Content-Type: application/json

{
  "message": "How do I dub a video into Tamil?",
  "context": "general"
}

###

### 5. MiniMax AI Music Generator Endpoint
POST {{baseUrl}}/api/music/generate
Content-Type: application/json

{
  "prompt": "Relaxing Acoustic Guitar BGM",
  "lyrics": "வணக்கம் தமிழ் நெஞ்சங்களே",
  "genre": "Cinematic Ambient BGM",
  "duration": 15
}

###

### 6. Live QR Chat Room Sync Endpoint
POST {{baseUrl}}/api/chat/sync/TEST_ROOM_101
Content-Type: application/json

{
  "user_id": "user_001",
  "user_name": "Abi",
  "native_lang": "ta",
  "target_lang": "en",
  "last_msg_count": 0
}

###

### 7. Send Live QR Chat Message Endpoint
POST {{baseUrl}}/api/chat/send
Content-Type: application/json

{
  "session_id": "TEST_ROOM_101",
  "sender_id": "user_001",
  "sender_name": "Abi",
  "text": "வணக்கம்! நீங்கள் எப்படி இருக்கிறீர்கள்?",
  "sender_lang": "ta",
  "target_lang": "en"
}

###

### 8. Voice Clone Profiles Library
GET {{baseUrl}}/api/voice-clone/profiles
Accept: application/json

###

### 9. Dubbing Task Progress Status Endpoint
GET {{baseUrl}}/api/dub/status/task_demo_123
Accept: application/json

###

### 10. Audio / Video Transcription API (Multipart File Upload)
### Note: Replace 'sample.mp4' path with your actual local file path in VS Code
POST {{baseUrl}}/api/transcribe
Content-Type: multipart/form-data; boundary=WebAppBoundary

--WebAppBoundary
Content-Disposition: form-data; name="whisper_model"

base
--WebAppBoundary
Content-Disposition: form-data; name="target_lang"

ta
--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="sample_audio.mp3"
Content-Type: audio/mpeg

< ./sample_audio.mp3
--WebAppBoundary--

###

### 11. Full Video Dubbing API (Multipart File Upload)
POST {{baseUrl}}/api/dub
Content-Type: multipart/form-data; boundary=WebAppBoundary

--WebAppBoundary
Content-Disposition: form-data; name="voice_gender"

female
--WebAppBoundary
Content-Disposition: form-data; name="target_lang"

ta
--WebAppBoundary
Content-Disposition: form-data; name="speech_rate"

+0%
--WebAppBoundary
Content-Disposition: form-data; name="whisper_model"

base
--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="sample_video.mp4"
Content-Type: video/mp4

< ./sample_video.mp4
--WebAppBoundary--

###

### 12. Video Cut & Trim Endpoint (Multipart Upload)
POST {{baseUrl}}/api/video/cut
Content-Type: multipart/form-data; boundary=WebAppBoundary

--WebAppBoundary
Content-Disposition: form-data; name="start_time"

0.0
--WebAppBoundary
Content-Disposition: form-data; name="end_time"

10.0
--WebAppBoundary
Content-Disposition: form-data; name="speed"

1.0
--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="sample_video.mp4"
Content-Type: video/mp4

< ./sample_video.mp4
--WebAppBoundary--

###

### 13. Video Batch Split into ZIP Archive Endpoint (Multipart Upload)
POST {{baseUrl}}/api/video/split-batch
Content-Type: multipart/form-data; boundary=WebAppBoundary

--WebAppBoundary
Content-Disposition: form-data; name="num_parts"

3
--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="sample_video.mp4"
Content-Type: video/mp4

< ./sample_video.mp4
--WebAppBoundary--

###

### 14. Video Size Compression Endpoint (Multipart Upload)
POST {{baseUrl}}/api/video/compress
Content-Type: multipart/form-data; boundary=WebAppBoundary

--WebAppBoundary
Content-Disposition: form-data; name="crf"

23
--WebAppBoundary
Content-Disposition: form-data; name="preset"

faster
--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="sample_video.mp4"
Content-Type: video/mp4

< ./sample_video.mp4
--WebAppBoundary--

###

### 15. Merge Video Clips Endpoint (Multipart Upload)
POST {{baseUrl}}/api/video/merge
Content-Type: multipart/form-data; boundary=WebAppBoundary

--WebAppBoundary
Content-Disposition: form-data; name="crf"

23
--WebAppBoundary
Content-Disposition: form-data; name="files"; filename="clip1.mp4"
Content-Type: video/mp4

< ./sample_video.mp4
--WebAppBoundary
Content-Disposition: form-data; name="files"; filename="clip2.mp4"
Content-Type: video/mp4

< ./sample_video.mp4
--WebAppBoundary--