Add support for making Text-To-Speech send regular text messages instead of notices
When speech-to-text/flow-type = `only_transcribe`, the bot will now send text messages by default, not notices. While notice messages may be less desirable with other bots in the room, it's probably a better default for most people who enable "transcribe-only" mode. This is an improvement related to https://github.com/etkecc/baibot/issues/14
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use super::SpeechToTextFlowType;
|
||||
use super::{SpeechToTextFlowType, SpeechToTextMessageTypeForNonThreadedOnlyTranscribedMessages};
|
||||
use super::{TextGenerationAutoUsage, TextGenerationPrefixRequirementType};
|
||||
use super::{TextToSpeechBotMessagesFlowType, TextToSpeechUserMessagesFlowType};
|
||||
|
||||
@@ -15,3 +15,9 @@ pub const TEXT_TO_SPEECH_USER_MESSAGES_FLOW_TYPE: TextToSpeechUserMessagesFlowTy
|
||||
|
||||
pub const SPEECH_TO_TEXT_FLOW_TYPE: SpeechToTextFlowType =
|
||||
SpeechToTextFlowType::TranscribeAndGenerateText;
|
||||
|
||||
// While notice messages may be less desirable with other bots in the room,
|
||||
// it's probably a better default for most people who enable "transcribe-only" mode.
|
||||
pub const SPEECH_TO_TEXT_ONLY_TRANSCRIBE_NON_THREADED_MESSAGE_TYPE:
|
||||
SpeechToTextMessageTypeForNonThreadedOnlyTranscribedMessages =
|
||||
SpeechToTextMessageTypeForNonThreadedOnlyTranscribedMessages::Text;
|
||||
|
||||
Reference in New Issue
Block a user