Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ebubae committed Nov 20, 2024
1 parent 044d749 commit 0bdf9b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/controllers/speechToText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ interface Prediction {
* @returns Audio transcription
*/
export const getTranscription: MiddleWare = async (req, res, next) => {
console.log('inside speech to text endpoint');
try {
const { audioUrl: audio } = req.body;
if (!audio.startsWith('https://') && !audio.startsWith('data:audio')) {
Expand Down
1 change: 1 addition & 0 deletions src/controllers/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const PayloadKeyMap = {
* @returns English text translation of the provided Igbo text
*/
export const getTranslation: MiddleWare = async (req, res, next) => {
console.log("inside translation endpoint")
try {
const requestBodyValidation = TranslationRequestBody.safeParse(req.body);
if (!requestBodyValidation.success) {
Expand Down

0 comments on commit 0bdf9b4

Please sign in to comment.