From 06b2b6d776382822fd136e808e8a44065bccf385 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Wed, 26 Feb 2025 13:47:28 +0200 Subject: [PATCH] =?UTF-8?q?Use=20progress=20indicator=20emoji=20(=E2=8F=B3?= =?UTF-8?q?),=20not=20=F0=9F=A6=BB=20to=20indicate=20that=20speech-to-text?= =?UTF-8?q?=20is=20happening?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🦻 is used for another purpose - to denote that a message is one coming from speech-to-text, by: - having the bot react to its own speech-to-text transcription message with the 🦻 emoji when it's posted in a non-thread - having the bot prefix its speech-to-text transcription messages with `> 🦻` when it's posted in a thread ⏳ is already used as a progress indicator for other features, so it makes sense to use it for indicating that speech-to-text is happening for a given audio message as well. While 🦻 was an even more descriptive illustration of what's actually happening to the audio message ("it's being heard by the bot"), us using the 🦻 emoji for different things didn't seem good. --- src/controller/chat_completion/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/chat_completion/mod.rs b/src/controller/chat_completion/mod.rs index 58baaf7..cfbf51e 100644 --- a/src/controller/chat_completion/mod.rs +++ b/src/controller/chat_completion/mod.rs @@ -324,7 +324,7 @@ async fn handle_stage_speech_to_text( .react_no_fail( message_context.room(), message_context.event_id().clone(), - AgentPurpose::SpeechToText.emoji().to_owned(), + strings::PROGRESS_INDICATOR_EMOJI.to_owned(), ) .await;