https://uberduck.ai/ logo
Join Discord
Powered by
# api-users
  • s

    samkoelle

    04/26/2023, 9:00 PM
    will try to add some asap
  • l

    Leninade

    05/02/2023, 9:30 PM
    helo good people a friend of mine once used uberduck API to basically expand the CMU arpabet pronunciation dictionary for an project in a class unfortunately he never showed me how he did it in any detail im using python how do i set up uberduck api so that i can get the pronouncation of any arbitrary word in arpabet form?
  • d

    DraeBob

    05/03/2023, 9:20 AM
    Is there api support for voice to voice ?
  • s

    SilverVR

    05/03/2023, 1:05 PM
    Is there a way to use the uuid of a voice output as a variable?
  • s

    SilverVR

    05/03/2023, 1:05 PM
    (Aka set a variable to the uuid on its own, nodejs)
  • w

    wlu07

    05/06/2023, 10:51 PM
    Coming soon!
  • d

    DraeBob

    05/07/2023, 1:36 AM
    Is there a time range that I can look forward to ?
  • z

    zwf

    05/07/2023, 3:51 PM
    next week
  • d

    DraeBob

    05/07/2023, 10:29 PM
    awesome
  • t

    tradeviews

    05/08/2023, 1:33 PM
    i have re written the uberduck script works with mp3 fix voices rebuilt the api calls dm me for a link
  • t

    tradeviews

    05/08/2023, 1:33 PM
    saves files and access other options
  • t

    tradeviews

    05/08/2023, 1:34 PM
    @bot.slash_command( name="vc-quack", guild_ids=guild_ids, ) async def speak_vc( ctx: nextcord.Interaction, voice: str = SlashOption( name="voice", description="Voice to use for synthetic speech", required=True ), speech: str = SlashOption( name="speech", description="Speech to synthesize", required=True ), ): voice_client, _ = await _get_or_create_voice_client(ctx) if voice_client: guild_to_voice_client[ctx.guild.id] = (voice_client, datetime.utcnow()) await ctx.response.defer(ephemeral=True, with_message=True) audio_data = await query_uberduck(speech, voice) with tempfile.NamedTemporaryFile( suffix=".mp3" ) as mp3_f, tempfile.NamedTemporaryFile(suffix=".opus") as opus_f: mp3_f.write(audio_data.getvalue()) mp3_f.flush() subprocess.check_call( ["ffmpeg", "-y", "-i", mp3_f.name, "-ac", "2", "-b:a", "128k", opus_f.name] ) source = nextcord.FFmpegOpusAudio(opus_f.name) voice_client.play(source, after=None) while voice_client.is_playing(): await asyncio.sleep(0.5) await asyncio.sleep(3) # add a 3 second delay await ctx.send("Sent a Voice message in voice chat.") else: await ctx.response.send_message( "You're not in a voice channel. Join a voice channel to invite the bot!", ephemeral=True, ) Replace this it will fix alot of errors
  • d

    Dyno

    05/08/2023, 1:34 PM
    Read #answers, @tradeviews.
  • t

    tradeviews

    05/08/2023, 1:35 PM
    create a voice.txt for the prompt put em one a line
  • t

    tradeviews

    05/08/2023, 1:35 PM
    755 perms
  • t

    tradeviews

    05/08/2023, 1:37 PM
    i run it on a pie i might have it use open gl to help the processing its on cpu now
  • t

    tradeviews

    05/08/2023, 1:37 PM
    ill update ttyl
  • v

    Vegito1089

    05/08/2023, 2:16 PM
    I have sent you a DM. Please respond.
  • v

    voice channel user

    05/11/2023, 4:05 PM
    wait so is this a fix for the vcquack command?
  • d

    DraeBob

    05/13/2023, 2:44 PM
    Is the voice to voice API ready?
  • p

    pitscher

    05/13/2023, 8:39 PM
    I'm having the same issues as some people before where it just returns 401 'Could not validate credentials'. I tried with two keys and have a new account with a creator plan... On node but also any of the example scripts on readme.io won't work
  • p

    pitscher

    05/13/2023, 9:47 PM
    wait, I'm confused. What's the difference between
    KEY
    and
    SECRET
    ?

    https://cdn.discordapp.com/attachments/976143832821407754/1107061676286681088/image.png▾

  • p

    pitscher

    05/13/2023, 10:36 PM
    oh jeez. It's using Basic auth which I have never used before. After some tinkering, here is my code for a Nextjs 13 serverless function. Might be useful to someone:
    Copy code
    javascript
    import { NextRequest, NextResponse } from 'next/server'
    
    const USERNAME = process.env.UBERDUCK_PUB // your Key starts with pub_
    const PASSWORD = process.env.UBERDUCK_SECRET // your Secret starts with pk_
    
    export async function POST(req: NextRequest) {
      const auth = `${USERNAME}:${PASSWORD}`
      const authHeader = `Basic ${Buffer.from(auth).toString('base64')}` // needs to be transformed to base-64
      const headers = {
        Authorization: authHeader,
        'Content-Type': 'application/json',
      }
    
      const payload = {
        pace: 1,
        voicemodel_uuid: 'e86122fa-caa7-4716-bdc5-45e9fc634bd1',
        speech: 'Hello World',
      }
    
      const apiUrl = 'https://api.uberduck.ai/speak-synchronous' // using synchronous
      try {
        const response = await fetch(apiUrl, {
          method: 'POST',
          headers,
          body: JSON.stringify(payload),
        })
        if (response.ok) {
          const audio = await response.arrayBuffer()
          // returns blob that can be used like this:
          //   const data = await response.blob()
          //   const audioUrl = URL.createObjectURL(data)
          return new NextResponse(audio, {
            headers: {
              'Content-Type': 'audio/wav',
            },
          })
        }
        throw new Error(response.statusText)
      } catch (error) {
        console.error(error)
        return NextResponse.error()
      }
    }
  • l

    laxmansingh97398

    05/14/2023, 2:36 AM
    i m getting this error from 2 days

    https://cdn.discordapp.com/attachments/976143832821407754/1107134189964361818/image.png▾

  • l

    laxmansingh97398

    05/14/2023, 2:37 AM
    pls help , thanks
  • l

    laxmansingh97398

    05/15/2023, 3:39 AM
    blank value? api does not work

    https://cdn.discordapp.com/attachments/976143832821407754/1107512618668798052/image.png▾

  • s

    squall

    05/20/2023, 3:32 PM
    anyone tried using uberduck api with editor x?
  • z

    zwf

    05/22/2023, 9:24 PM
    what's editor x?
  • j

    JoeyZero

    05/24/2023, 7:53 AM
    Silly question: I played around with Uberduck a good long while ago, and I remember the speak endpoint generally respecting a pace value. Anyone know why that was changed? 🤷
  • s

    Sikret

    05/25/2023, 4:45 AM
    Why does using API says I need to buy premium? I already have a creator plan