This project provides an audio recording functionality using the MediaRecorder
API. It allows users to record audio from their microphone, play it back, and download the recorded file.
AudioRecorder.jsx
: The main component for recording and handling audio functionality.Styled
: Contains the styled-components for the layout of the recorder interface.You can use the AudioRecorder
component by importing it into your React project.
import AudioRecorder from "./AudioRecorder";
function App() {
return (
<div className="App">
<AudioRecorder />
</div>
);
}
export default App;
The application uses styled-components for styling the UI. Below are the key styles:
const Styled = {
Main: styled.main`
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
gap: 10px;
`,
AudioRecorderContainer: styled.div`
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
gap: 10px;
padding: 10px;
`,
};