Skip to content
Draft
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/stage-layouts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,11 @@
"@proj-airi/stage-shared": "workspace:^",
"@types/audioworklet": "catalog:",
"@types/three": "^0.184.0",
"@vue/test-utils": "catalog:",
"@webgpu/types": "catalog:",
"jsdom": "catalog:",
"unplugin-info": "catalog:",
"vitest": "catalog:",
"vue-tsc": "^3.2.6"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import ActionAbout from './InteractiveArea/Actions/About.vue'
import ActionViewControls from './InteractiveArea/Actions/ViewControls.vue'
import ViewControlInputs from './ViewControls/Inputs.vue'

import { useTranscriptions } from '../../composables/use-transcriptions'
import { BackgroundDialogPicker } from '../Backgrounds'

const { isDark, toggleDark } = useTheme()
Expand Down Expand Up @@ -66,6 +67,14 @@ function isMobileDevice() {
return /Mobi|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)
}

const { isListening } = useTranscriptions(
{
messageInputRef: messageInput,
sendMessage: handleSend,
isStageTamagotchi: isMobileDevice,
Comment thread
drHuangMHT marked this conversation as resolved.
Outdated
},
)

async function handleSubmit() {
if (!isMobileDevice()) {
await handleSend()
Expand Down Expand Up @@ -191,7 +200,7 @@ onMounted(() => {
title="Hearing"
>
<Transition name="fade" mode="out-in">
<IndicatorMicVolume v-if="enabled" size-5 color-class="text-neutral-500 dark:text-neutral-400" />
<IndicatorMicVolume v-if="enabled" size-5 :color-class="isListening ? undefined : 'text-neutral-500 dark:text-neutral-400'" />
<div v-else i-solar:microphone-3-outline size-5 text="neutral-500 dark:neutral-400" />
</Transition>
</button>
Expand Down
Loading
Loading