|
|
@@ -44,8 +44,8 @@ export default ({agentId,disabled, onIconClick, onSend, beforeSend, onError}:Pro
|
|
|
return;
|
|
|
}
|
|
|
beforeSend()
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
// 以二进制方式读取文件
|
|
|
try{
|
|
|
const response = await speechToText(agentId, res.tempFilePath)
|
|
|
@@ -69,10 +69,10 @@ export default ({agentId,disabled, onIconClick, onSend, beforeSend, onError}:Pro
|
|
|
|
|
|
return <>
|
|
|
{/* <TextInputBar onIconClick={handleTextInputBarSwitch}></TextInputBar> */}
|
|
|
-
|
|
|
+
|
|
|
<View className={`flex bg-white gap-6 items-center p-16 rounded-10 ${style.speechButton} ${ idle ? '': style.speechButtonActive}`}>
|
|
|
- <View
|
|
|
- className="flex-1 flex items-center justify-center"
|
|
|
+ <View
|
|
|
+ className="flex-1 flex items-center justify-center leading-34 h-34"
|
|
|
onLongPress={onLongPress}
|
|
|
onTouchStart={handleTouchStart}
|
|
|
onTouchEnd={onTouchEnd}
|
|
|
@@ -84,6 +84,6 @@ export default ({agentId,disabled, onIconClick, onSend, beforeSend, onError}:Pro
|
|
|
{!!messageStopHandle && <View className="flex items-center" onClick={handleStopClick}><IconStop/></View>}
|
|
|
</View>
|
|
|
</View>
|
|
|
-
|
|
|
+
|
|
|
</>
|
|
|
-}
|
|
|
+}
|