Search Results for

    Show / Hide Table of Contents

    Class GetRecordRequest

    [在cqhttp4.8中加入] 获取语音文件转换格式后的文件名/绝对路径 请不要直接构造并发送此调用,而通过ElementRecord的成员函数调用

    Inheritance
    System.Object
    ApiRequest
    GetRecordRequest
    Inherited Members
    ApiRequest.api_path
    ApiRequest.response
    ApiRequest.content
    Namespace: cqhttp.Cyan.ApiCall.Requests
    Assembly: cqhttp.Cyan.dll
    Syntax
    public class GetRecordRequest : ApiRequest

    Constructors

    | Improve this Doc View Source

    GetRecordRequest(String, String, Boolean)

    Declaration
    public GetRecordRequest(string file, string out_format, bool full_path = false)
    Parameters
    Type Name Description
    System.String file

    收到的语音文件名(CQ 码的 file 参数)

    System.String out_format

    要转换到的格式,目前支持 mp3、amr、wma、m4a、spx、ogg、wav、flac

    System.Boolean full_path

    是否返回文件的绝对路径(Windows 环境下建议使用,Docker 中不建议)

    • Improve this Doc
    • View Source
    ☀
    ☾