Skip to content

Commit

Permalink
expose the options to set input and output devices. (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaustubhkagrawal authored May 30, 2024
1 parent f981118 commit 8e62df9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions vapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,4 +294,13 @@ export default class Vapi extends VapiEventEmitter {
endCallAfterSpoken
})
}


public setInputDevicesAsync(options: Parameters<DailyCall['setInputDevicesAsync']>[0]) {
this.call?.setInputDevicesAsync(options)
}

public setOutputDeviceAsync(options: Parameters<DailyCall['setOutputDeviceAsync']>[0]) {
this.call?.setOutputDeviceAsync(options)
}
}

0 comments on commit 8e62df9

Please sign in to comment.