Skip to content

Instantly share code, notes, and snippets.

View officialrobert's full-sized avatar

Robert Espina officialrobert

  • PH
View GitHub Profile
@officialrobert
officialrobert / uploadSupa.ts
Created May 5, 2024 01:32
How to do resumable upload using supabase storage
import { Upload } from 'tus-js-client';
import { isEmpty, head } from 'lodash';
function uploadFile(
file: File,
accessToken: string,
bucketName: string,
fileName: string,
contentType: string,
folder?: string
@officialrobert
officialrobert / CloneVoice.ts
Last active May 10, 2024 16:19
How to clone a voice in elevenlabs using nodeJS
import FormData from 'form-data';
import axios from 'axios';
import fs from 'fs';
interface ICloneVoiceParams {
description:string;
name:string;
fileUrls: string[];
labels: Record<string,string>;