Conversation
- Created core files including package.json, README.md, and TypeScript configuration. - Implemented voice recording functionality with hooks and components. - Added visual waveform representation and playback controls. - Included TypeScript support and defined project structure. - Added .gitignore to exclude unnecessary files and directories.
- Revised description for clarity and conciseness. - Added new properties (width, height, style) to VoiceRecorderProps for customization. - Expanded the UseVoiceRecorderReturn type with a new 'restart' method. - Introduced a time formatting function for better time display in the UI. - Updated the example UI to include the restart functionality and improved button layout. - Added a new features section to highlight capabilities of the voice recorder.
- Updated DeleteIcon SVG for improved visual representation. - Introduced a new types.ts file to define RecorderState and options for the voice recorder. - Refactored useVoiceRecorder hook to include new state management and methods for handling recording, pausing, and stopping. - Enhanced VoiceRecorder component to utilize updated state and methods, improving user interaction and control. - Consolidated type exports in index.ts for better organization.
- Added ResumeIcon to the icon set for improved user experience. - Expanded VoiceRecorderProps to include additional styling options such as backgroundColor, borderColor, and button customization. - Updated the VoiceRecorder component to utilize new props for better visual customization and user interaction. - Refactored visualizer bar properties for dynamic styling based on props. - Improved button hover effects and icon rendering for enhanced usability.
- Revised project description for better readability. - Enhanced VoiceRecorderProps section with clearer property descriptions and added styling options. - Updated usage examples to reflect new features and improved component API. - Added detailed recording states to clarify component behavior. - Improved overall structure and formatting for better navigation.
…rding states - Introduced a new section in README.md to showcase various states of the voice recorder. - Added images for initial state, recording in progress, paused state, and completed recording. - Enhanced documentation to improve user understanding of the component's functionality.
…ved discoverability
|
Why do we need a dependency for this? can't we just use MediaRecorder api directly? also I personally don't like the UI, it doesn't fit sable. also would this work on safari and ios? it defaults to I rather avoid external dependencies for simple things. Gives us more control as well |
|
Safari and iOS have supported webm playback for years now. I do agree the theming doesn’t fit in too well. |
I think ogg would be a better fit for audio files. https://caniuse.com/ogg-vorbis |
ignored files: .lh
|
probably using this adjusted to our needs fork then: https://github.com/dozro/sable-voice-recorder-kit |
|
can you integrate it within the codebase as a feature? tracking dependencies is pain and from what I can tell its just web apis and react, so no external dependencies. |
…-into-sable' into feat/audio-recordings
ignored files: .lh


Description
adding functionality to compose voice messages
Fixes #3
Type of change
Checklist: