[GET] Lấy danh sách Voice
Để lấy toàn bộ các voice bạn dùng API sau:
Mục đích lấy Voice ID để tạo TextToSpeech.
🔐 Authentication
-
API Key: Gửi qua header
Header cần có:
apikey: 92d80a807743fa1bfa337777212ce6d4
Request
https://larvoice.com/api/voice
Example
curl --location 'https://larvoice.com/api/voice' \--header 'apikey: 92d80a807743fa1bfa337777212ce6d4'
Response
{ "current_page": 1, "data": [ { "id": 927, "name": "Kỳ Anh", "description": "", "country": null, "region": null, "gender": "male", "language_id": 1, "status": "active", "language_name": "vietnamese" }, { "id": 926, "name": "Tùng Anh", "description": "", "country": null, "region": null, "gender": "male", "language_id": 1, "status": "active", "language_name": "vietnamese" }, { "id": 925, "name": "Ngọc An", "description": "", "country": null, "region": null, "gender": "male", "language_id": 1, "status": "active", "language_name": "vietnamese" } ], "first_page_url": "http://larvoice.com/api/voice?page=1", "from": 1, "last_page": 1, "last_page_url": "http://larvoice.com/api/voice?page=1", "links": [ { "url": null, "label": "« Previous", "active": false }, { "url": "http://larvoice.com/api/voice?page=1", "label": "1", "active": true }, { "url": null, "label": "Next »", "active": false } ], "next_page_url": null, "path": "http://larvoice.com/api/voice", "per_page": 100, "prev_page_url": null, "to": 26, "total": 26}