Skip to content

Commit

Permalink
feat: apply some feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeocodes committed Nov 6, 2023
1 parent 4ed2519 commit 230d265
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions app/microphone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,24 @@ export default function Microphone() {
return (
<div className="w-full relative">
<div className="mt-10 flex flex-col align-middle items-center">
<Image
src="/click.png"
width="168"
height="129"
alt="Deepgram Logo"
priority
/>
{!!userMedia && !!microphone && micOpen ? (
<Image
src="/speak.png"
width="168"
height="129"
alt="Deepgram Logo"
priority
/>
) : (
<Image
src="/click.png"
width="168"
height="129"
alt="Deepgram Logo"
priority
/>
)}

<button className="w-24 h-24" onClick={() => toggleMicrophone()}>
<Recording
width="96"
Expand All @@ -160,7 +171,9 @@ export default function Microphone() {
/>
</button>
<div className="mt-20 p-6 text-xl text-center">
{caption ?? "Captions by Deepgram"}
{caption && micOpen
? caption
: "** Realtime transcription by Deepgram **"}
</div>
</div>
<div
Expand Down
Binary file added public/speak.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 230d265

Please sign in to comment.