Skip to content

raxpost/interview_agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Playwright Audio Capture

This application uses Playwright to open a web page, click a play button, and capture audio from the page.

Setup

  1. Install dependencies:
npm install
npm run install-browsers

Usage

Run the application:

npm start

The app will:

  1. Open the specified Google Drive URL
  2. Click the play button (class: VYBDae-Bz112c-RLmnJb)
  3. Capture audio for 10 seconds
  4. Save the audio to captured_audio.webm

Configuration

Edit index.js to customize:

  • TARGET_URL: The URL to open
  • PLAY_BUTTON_CLASS: The class name of the play button
  • Recording duration (currently set to 10 seconds in the setTimeout call)

Notes

  • The browser launches in non-headless mode by default so you can see what's happening
  • Audio is captured using the Web Audio API from media elements on the page
  • If the play button class doesn't match, the script will try alternative selectors
  • The captured audio is saved as a WebM file

Troubleshooting

If audio capture doesn't work:

  1. Make sure the page has audio/video elements playing
  2. Check browser console for errors (visible in non-headless mode)
  3. Try adjusting the wait times if the page loads slowly
  4. Ensure the play button selector is correct

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published