Files
real-time/src/main/java/com/realtime/config/DoubaoVoiceConfig.java
2025-12-01 10:08:41 +08:00

15 lines
538 B
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package com.realtime.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@Data
@Configuration
@ConfigurationProperties(prefix = "doubao.voice")
public class DoubaoVoiceConfig {
private String appId;
private String apiKey; // 豆包 API Key
private String accessToken; // 访问令牌
private String websocketUrl; // 豆包实时语音接口的 WebSocket 地址(如 wss://api.doubao.com/voice/realtime
}