@speakableio/core 0.1.43 → 0.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.web.d.mts
CHANGED
|
@@ -2209,7 +2209,7 @@ declare const useBaseOpenAI: ({ onTranscriptSuccess, onTranscriptError, onComple
|
|
|
2209
2209
|
fileName: string;
|
|
2210
2210
|
}>;
|
|
2211
2211
|
uploadAudioAndGetTranscript: (audio: string, language: string) => Promise<string>;
|
|
2212
|
-
getTranscript: (audioUrl: string, language: string) => Promise<
|
|
2212
|
+
getTranscript: (audioUrl: string, language: string) => Promise<any>;
|
|
2213
2213
|
getFreeResponseCompletion: (messages: string[], isFreeResponse: boolean, feedbackLanguage: string, gradingStandard?: string) => Promise<any>;
|
|
2214
2214
|
getFeedback: ({ cardId, language, writtenResponse, audio, autoGrade, file, }: {
|
|
2215
2215
|
cardId: string;
|
package/dist/index.web.js
CHANGED
|
@@ -86,9 +86,9 @@ var FirebaseAPI = class _FirebaseAPI {
|
|
|
86
86
|
if (!this.config) throw new Error("Firebase API not initialized");
|
|
87
87
|
return this.config.helpers;
|
|
88
88
|
}
|
|
89
|
-
httpsCallable(
|
|
90
|
-
|
|
91
|
-
return
|
|
89
|
+
get httpsCallable() {
|
|
90
|
+
if (!this.config) throw new Error("Firebase API not initialized");
|
|
91
|
+
return this.config.httpsCallable;
|
|
92
92
|
}
|
|
93
93
|
logEvent(name, data) {
|
|
94
94
|
var _a;
|
|
@@ -2723,10 +2723,10 @@ var useBaseOpenAI = ({
|
|
|
2723
2723
|
});
|
|
2724
2724
|
const getTranscript = async (audioUrl, language) => {
|
|
2725
2725
|
try {
|
|
2726
|
-
const response = await
|
|
2726
|
+
const response = await getAssemblyAITranscript({
|
|
2727
2727
|
audioUrl,
|
|
2728
2728
|
language
|
|
2729
|
-
})
|
|
2729
|
+
});
|
|
2730
2730
|
console.log("response (getTranscript) from getAssemblyAITranscript", {
|
|
2731
2731
|
response,
|
|
2732
2732
|
audioUrl,
|