Skip to content

SaraBedd/ai-interview-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AI interview bot

Early phase (still in development) of JavaScript interview browser SDK to run AI-powered interviews

Environment Setup

Local testing instructions. Make sure you have node installed on your machine first and have the repo cloned.

Test the SDK

  1. Create a new Node.js project
  2. Run npm install <path/to/sdk>
  3. Import the Interview class from ai-interview-sdk

Run the server

  1. Open terminal and navigate to server directory
  2. Run npm install
  3. Run nodemon index.ts

Directory structure

server directory

Express server that handles incoming socket connection from SDK and all conversational logic. To be deployed.

  • index.ts is the main entry point
  • openai.ts initializes the chat SDK and provides a helper
  • speech.ts initializes the Azure Speech SDK and provides helpers

sdk directory

Code for the SDK to be integrated into any web platform. This calls our own server. To be published on NPM directory.

  • index.ts export Interview class for SDK usage
  • audioBufferToWav.ts helper to convert webm audio chunks to wav
  • audio-worklet-processor.js handle and pass on chunks of the incoming audio stream
  • __tests__ for unit tests to be added to (not yet started)

Process diagram

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 80.3%
  • JavaScript 15.8%
  • Dockerfile 2.9%
  • Shell 1.0%