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:
@@ -16,7 +16,7 @@ pub fn create_transcribed_message_text(text: &str) -> String {
|
||||
/// If the provided text string does not match the expected format, None is returned.
|
||||
///
|
||||
/// It should be noted that in certain cases (Transcribe-only mode), transcriptions are posted as regular notice messages which do not include
|
||||
/// the `> 🦻` prefixing. This function will not handle these properly.
|
||||
/// the `> 🦻` prefix. This function will not handle these properly.
|
||||
pub fn parse_transcribed_message_text(text: &str) -> Option<String> {
|
||||
if !text.starts_with("> ") {
|
||||
return None;
|
||||
|
||||
Reference in New Issue
Block a user