zshashz commited on
Commit
aea2245
·
1 Parent(s): 6a27243
Files changed (1) hide show
  1. index.html +3 -3
index.html CHANGED
@@ -66,7 +66,7 @@
66
  this.recordButton.addEventListener('click', () => this.toggleRecording());
67
 
68
  // Replace with your Eleven Labs API key
69
- this.ELEVEN_LABS_API_KEY = 'sk_d31f32025dda541dcd4f0aad95d3c7d1b31d36db7116dc1f';
70
  }
71
 
72
  async setupMediaRecorder() {
@@ -191,9 +191,9 @@
191
  async sendToElevenLabs(wavBlob) {
192
  try {
193
  const formData = new FormData();
194
- formData.append('audio', wavBlob, 'recording.wav');
195
 
196
- const response = await fetch('https://api.elevenlabs.io/v1/speech-to-text', {
197
  method: 'POST',
198
  headers: {
199
  'xi-api-key': this.ELEVEN_LABS_API_KEY,
 
66
  this.recordButton.addEventListener('click', () => this.toggleRecording());
67
 
68
  // Replace with your Eleven Labs API key
69
+ this.ELEVEN_LABS_API_KEY = 'sk_f54a899fc3dd71448fc4a1e2c07f15aafa93580cdc50d853';
70
  }
71
 
72
  async setupMediaRecorder() {
 
191
  async sendToElevenLabs(wavBlob) {
192
  try {
193
  const formData = new FormData();
194
+ formData.append('file', wavBlob, 'recording.wav');
195
 
196
+ const response = await fetch('https://api.elevenlabs.io/v2/speech-recognition', {
197
  method: 'POST',
198
  headers: {
199
  'xi-api-key': this.ELEVEN_LABS_API_KEY,