Skip to content

Commit b9fbab5

Browse files
committed
Replace VoiceIt3 with voiceit3
1 parent 47e1e3e commit b9fbab5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function checkFileExists(filePath, callback) {
1212
return true;
1313
}
1414

15-
function VoiceIt3(apk, tok, baseUrl) {
15+
function voiceit3(apk, tok, baseUrl) {
1616
this.baseUrl = baseUrl || 'https://api.voiceit.io';
1717

1818
this.axiosInstance = axios.create({
@@ -846,4 +846,4 @@ function VoiceIt3(apk, tok, baseUrl) {
846846
};
847847
}
848848

849-
module.exports = VoiceIt3;
849+
module.exports = voiceit3;

test_example.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
const VoiceIt3 = require('./index.js');
1+
const voiceit3 = require('./index.js');
22
const fs = require('fs');
33
const path = require('path');
44

55
const apiKey = process.env.VOICEIT_API_KEY;
66
const apiToken = process.env.VOICEIT_API_TOKEN;
77
if (!apiKey || !apiToken) { console.log("Set VOICEIT_API_KEY and VOICEIT_API_TOKEN"); process.exit(1); }
88

9-
const vi = new VoiceIt3(apiKey, apiToken);
9+
const vi = new voiceit3(apiKey, apiToken);
1010
const phrase = "Never forget tomorrow is a new day";
1111
const td = path.join(__dirname, "test-data");
1212
let errors = 0;

0 commit comments

Comments
 (0)