# Get Available Voices GET /api/v1/podcasts/voices/ Retrieve paginated list of available voices from Hume AI for podcast generation. Returns voice information including ID, name, provider, tags, and pagination metadata. Reference: https://docs.aisquare.studio/api-reference/ai-square-studio-api/podcasts/voices-list ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: AISquare Studio API version: 1.0.0 paths: /api/v1/podcasts/voices/: get: operationId: voices-list summary: Get Available Voices description: >- Retrieve paginated list of available voices from Hume AI for podcast generation. Returns voice information including ID, name, provider, tags, and pagination metadata. tags: - subpackage_podcasts parameters: - name: page in: query description: A page number within the paginated result set. required: false schema: type: integer - name: page_number in: query description: Page number for pagination (0-based) required: false schema: type: integer default: 0 - name: page_size in: query description: Number of voices per page (1-100) required: false schema: type: integer default: 10 - name: provider in: query description: Voice provider to filter by required: false schema: $ref: '#/components/schemas/ApiV1PodcastsVoicesGetParametersProvider' responses: '200': description: Paginated list of available voices content: application/json: schema: $ref: '#/components/schemas/PaginatedVoiceListPaginatedResponseList' '401': description: Authentication required content: application/json: schema: description: Any type '500': description: Error fetching voices from Hume AI content: application/json: schema: description: Any type components: schemas: ApiV1PodcastsVoicesGetParametersProvider: type: string enum: - CUSTOM_VOICE - HUME_AI default: HUME_AI title: ApiV1PodcastsVoicesGetParametersProvider VoiceList: type: object properties: id: type: string name: type: string provider: type: string tags: description: Any type required: - id - name - provider - tags description: Serializer for voice options from Hume AI. title: VoiceList VoiceListPaginatedResponse: type: object properties: voices: type: array items: $ref: '#/components/schemas/VoiceList' page_number: type: integer page_size: type: integer total_pages: type: integer required: - voices - page_number - page_size - total_pages description: Serializer for paginated voice list response from Hume AI. title: VoiceListPaginatedResponse PaginatedVoiceListPaginatedResponseList: type: object properties: count: type: integer next: type: - string - 'null' format: uri previous: type: - string - 'null' format: uri results: type: array items: $ref: '#/components/schemas/VoiceListPaginatedResponse' required: - count - results title: PaginatedVoiceListPaginatedResponseList ``` ## SDK Code Examples ```python Paginated list of voices from Hume AI import requests url = "https://api.example.com/api/v1/podcasts/voices/" response = requests.get(url) print(response.json()) ``` ```javascript Paginated list of voices from Hume AI const url = 'https://api.example.com/api/v1/podcasts/voices/'; const options = {method: 'GET'}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Paginated list of voices from Hume AI package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.example.com/api/v1/podcasts/voices/" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Paginated list of voices from Hume AI require 'uri' require 'net/http' url = URI("https://api.example.com/api/v1/podcasts/voices/") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```java Paginated list of voices from Hume AI import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.example.com/api/v1/podcasts/voices/") .asString(); ``` ```php Paginated list of voices from Hume AI request('GET', 'https://api.example.com/api/v1/podcasts/voices/'); echo $response->getBody(); ``` ```csharp Paginated list of voices from Hume AI using RestSharp; var client = new RestClient("https://api.example.com/api/v1/podcasts/voices/"); var request = new RestRequest(Method.GET); IRestResponse response = client.Execute(request); ``` ```swift Paginated list of voices from Hume AI import Foundation let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/api/v1/podcasts/voices/")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```