@@ -28,6 +28,7 @@ import Spinner from '../../components/Spinner';
2828import { GeneratingContext } from '../../context' ;
2929import SuggestedPrompts from '../../components/SuggestedPrompts' ;
3030import ErrorBanner from '../../components/ErrorBanner' ;
31+ import AudioWaveform from '../../components/AudioWaveform' ;
3132
3233const SUGGESTED_PROMPTS = [
3334 "What's in this image?" ,
@@ -291,10 +292,16 @@ function MultimodalLLMScreen() {
291292 { /* Audio attachment strip */ }
292293 { audioLabel && (
293294 < View style = { styles . audioAttachmentContainer } >
294- < Text style = { styles . audioAttachmentText } > 🎵 { audioLabel } </ Text >
295- < TouchableOpacity onPress = { clearAudio } >
296- < Text style = { styles . audioAttachmentClear } > ✕</ Text >
297- </ TouchableOpacity >
295+ < View style = { styles . audioAttachmentRow } >
296+ < Text style = { styles . audioAttachmentText } > 🎵 { audioLabel } </ Text >
297+ < TouchableOpacity onPress = { clearAudio } >
298+ < Text style = { styles . audioAttachmentClear } > ✕</ Text >
299+ </ TouchableOpacity >
300+ </ View >
301+ < AudioWaveform
302+ buffer = { audioBuffer }
303+ style = { styles . audioWaveform }
304+ />
298305 </ View >
299306 ) }
300307
@@ -471,9 +478,7 @@ const styles = StyleSheet.create({
471478 color : ColorPalette . blueDark ,
472479 } ,
473480 audioAttachmentContainer : {
474- flexDirection : 'row' ,
475- alignItems : 'center' ,
476- justifyContent : 'space-between' ,
481+ flexDirection : 'column' ,
477482 paddingHorizontal : 16 ,
478483 paddingVertical : 8 ,
479484 marginHorizontal : 16 ,
@@ -483,6 +488,11 @@ const styles = StyleSheet.create({
483488 borderColor : ColorPalette . blueLight ,
484489 backgroundColor : '#fafbff' ,
485490 } ,
491+ audioAttachmentRow : {
492+ flexDirection : 'row' ,
493+ alignItems : 'center' ,
494+ justifyContent : 'space-between' ,
495+ } ,
486496 audioAttachmentText : {
487497 fontSize : 13 ,
488498 fontFamily : 'regular' ,
@@ -493,6 +503,10 @@ const styles = StyleSheet.create({
493503 color : ColorPalette . blueDark ,
494504 paddingHorizontal : 8 ,
495505 } ,
506+ audioWaveform : {
507+ marginTop : 6 ,
508+ minWidth : 0 ,
509+ } ,
496510 audioUrlRow : {
497511 flexDirection : 'row' ,
498512 alignItems : 'center' ,
0 commit comments