Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic camera mode for stitching camera and audio modality #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

benjibc
Copy link
Contributor

@benjibc benjibc commented Jul 1, 2024

Integrate Audio Recording with Camera in ChatInferenceModule

  • Combines video and audio capture in camera mode
  • Implements auto-transcription during image capture
  • Removes separate audio button for streamlined UX
  • Adds "Capture and Send" button in camera mode
  • Updates message to include image and transcribed audio

Test camera activation, speech transcription, and message composition with image+text.

Copy link

vercel bot commented Jul 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
functional-chat ❌ Failed (Inspect) Jul 8, 2024 5:53pm
transcription_chat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2024 5:53pm

import fs from 'fs/promises';



Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: remove redundant newlines.

@@ -102,4 +190,4 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
res.status(500).json({ error: 'An internal server error occurred' });
}
}
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add newline.

@@ -0,0 +1,34 @@
// pages/api/upload-image.ts
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For file naming consistency, lets call it uploadImage.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants