airecord

package
v1.7.1-0...-0c948e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package airecord 群应用:AI声聊配置

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintRecordConfig

func PrintRecordConfig() string

PrintRecordConfig 生成格式化的语音记录配置信息字符串

func SetCustomGID

func SetCustomGID(gid int64) error

SetCustomGID 设置自定义群ID

func SetRecordModel

func SetRecordModel(modelName, modelID string) error

SetRecordModel 设置语音记录模型

Types

type RecordConfig

type RecordConfig struct {
	ID        int64  `db:"id"`        // 主键ID
	ModelName string `db:"modelName"` // 语音模型名称
	ModelID   string `db:"modelID"`   // 语音模型ID
	Customgid int64  `db:"customgid"` // 自定义群ID
}

RecordConfig 存储语音记录相关配置

func GetConfig

func GetConfig() RecordConfig

GetConfig 获取当前配置

type Storage

type Storage struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Storage 语音记录配置存储

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL