Initial commit: media-to-text app

This commit is contained in:
Gan, Jimmy
2026-02-08 23:26:40 +08:00
commit b155e85040
44 changed files with 1396 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
# Development Rules
## Testing Requirements
- ALWAYS test code before claiming it's done
- Verify file uploads work with actual test files
- Check browser console for errors during testing
- Never say "done" without confirming functionality
- Run test scripts first before presenting solutions
## Known Issues
- MP4 video files may fail with AudioContext.decodeAudioData()
- Browser can't decode all video codecs to audio
- MediaRecorder approach for video extraction produces empty/unusable audio
- Solution: AudioContext.decodeAudioData works directly on many video formats
+34
View File
@@ -0,0 +1,34 @@
{
"permissions": {
"allow": [
"Bash(lsof:*)",
"Bash(curl:*)",
"Bash(pkill:*)",
"Bash(/tmp/create_speech.py:*)",
"Bash(__NEW_LINE_96afbd91fece9431__ python3 /tmp/create_speech.py)",
"Bash(brew install:*)",
"Bash(docker logout:*)",
"Bash(docker-compose up:*)",
"Bash(~/.docker/config.json << 'EOF'\n{\n \"cliPluginsExtraDirs\": [\n \"/opt/homebrew/lib/docker/cli-plugins\"\n ]\n}\nEOF)",
"Bash(colima start:*)",
"Bash(colima stop:*)",
"Bash(docker-compose logs:*)",
"Bash(docker-compose down:*)",
"Bash(ls:*)",
"WebFetch(domain:unpkg.com)",
"WebFetch(domain:esm.sh)",
"WebFetch(domain:cdn.jsdelivr.net)",
"WebSearch",
"WebFetch(domain:cdn.skypack.dev)",
"WebFetch(domain:app.unpkg.com)",
"WebFetch(domain:www.jsdelivr.com)",
"WebFetch(domain:ffmpegwasm.netlify.app)",
"Bash(find:*)",
"Bash(chmod:*)",
"Bash(du:*)",
"Bash(git init:*)",
"Bash(git add:*)",
"Bash(git commit:*)"
]
}
}