> For the complete documentation index, see [llms.txt](https://doc1.antgst.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc1.antgst.com/ant-api/voice/voice-file.md).

# Voice File

## Paging list of voice files

> Paging list of voice files.

```json
{"openapi":"3.0.3","info":{"title":"AntGST Voice Files API","version":"1.0.0"},"servers":[{"url":"https://api.antgst.com/voice/v1"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"[X-API-KEY](https://web.antgst.com/client/account/workspaceApi) = API key + API secret."}},"schemas":{"VoiceFileListResponse":{"type":"object","properties":{"code":{"type":"integer","description":"Interface status code"},"msg":{"type":"string","description":"Interface response information"},"data":{"type":"array","items":{"$ref":"#/components/schemas/VoiceFileItem"}},"total":{"type":"integer","description":"The total number of data."},"size":{"type":"integer","description":"The number of pages per page."},"current":{"type":"integer","description":"Current page number."},"pages":{"type":"integer","description":"Total number of pages."}}},"VoiceFileItem":{"type":"object","properties":{"id":{"type":"integer","description":"Voice file ID"},"fileName":{"type":"string","description":"Voice file name"},"addTime":{"type":"string","description":"Voice file added time"}}}}},"paths":{"/voiceFiles":{"get":{"summary":"Paging list of voice files","description":"Paging list of voice files.","operationId":"getVoiceFiles","tags":["Voice Files"],"parameters":[{"name":"pageNo","in":"query","required":false,"schema":{"type":"integer","default":1,"minimum":1,"maximum":100},"description":"Page number of the results to be returned. 1 to 100. Defaults to 1"},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","default":10,"minimum":1,"maximum":100},"description":"Maximum number of pages per page. 1 to 100. Defaults to 10"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceFileListResponse"}}}}}}}}}
```

## Upload voice file

> Upload a new voice file.

```json
{"openapi":"3.0.3","info":{"title":"AntGST Voice Files API","version":"1.0.0"},"servers":[{"url":"https://api.antgst.com/voice/v1"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"[X-API-KEY](https://web.antgst.com/client/account/workspaceApi) = API key + API secret."}},"schemas":{"UploadVoiceFileResponse":{"type":"object","properties":{"code":{"type":"integer","description":"Interface status code"},"msg":{"type":"string","description":"Interface response information"},"id":{"type":"integer","description":"Voice file ID"},"fileName":{"type":"string","description":"Voice file name"}}}}},"paths":{"/voiceFile/upload":{"post":{"summary":"Upload voice file","description":"Upload a new voice file.","operationId":"uploadVoiceFile","tags":["Voice Files"],"parameters":[{"name":"fileName","in":"query","required":false,"schema":{"type":"string"},"description":"Customize voice file upload file name, if not used, the default is to use the file name of the uploaded file"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"Voice file. (Only .wav file is supported)"}},"required":["file"]}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadVoiceFileResponse"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc1.antgst.com/ant-api/voice/voice-file.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
