Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Cartesia Synthesizer Initialization Error #725

Open
albertlieyingadrian opened this issue Oct 26, 2024 · 2 comments
Open

[Bug]: Cartesia Synthesizer Initialization Error #725

albertlieyingadrian opened this issue Oct 26, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@albertlieyingadrian
Copy link

Brief Description

Error when initializing cartesia synthesizer

LLM

GPT-4

Transcription Services

Deepgram

Synthesis Services

None

Telephony Services

None

Conversation Type and Platform

real-time streaming with cartesia

Steps to Reproduce

  conversation = StreamingConversation(
      output_device=speaker_output,
      transcriber=DeepgramTranscriber(
          DeepgramTranscriberConfig.from_input_device(
              microphone_input,
              endpointing_config=PunctuationEndpointingConfig(),
              api_key=settings.deepgram_api_key,
          ),
      ),
      agent=ChatGPTAgent(
          ChatGPTAgentConfig(
              openai_api_key=settings.openai_api_key,
              initial_message=BaseMessage(text="What up"),
              prompt_preamble="""The AI is having a pleasant conversation about life""",
          )
      ),
      synthesizer=CartesiaSynthesizer(
          CartesiaSynthesizerConfig(
              api_key=settings.cartesia_api_key,
              voice_id=CARTESIA_VOICE_ID,
              sampling_rate=16000,
              audio_encoding="linear16",
              experimental_voice_controls={
                  "speed": "slow",
                  "emotion": "positivity: high"
              }
          ).from_output_device(speaker_output),
      ),
  )
  await conversation.start()

Expected Behavior

There should be no error at all

Screenshots

Screenshot 2024-10-26 at 11 55 20 AM
@albertlieyingadrian albertlieyingadrian added the bug Something isn't working label Oct 26, 2024
@albertlieyingadrian
Copy link
Author

albertlieyingadrian commented Oct 26, 2024

The error might be caused by unpublished release (latest is June 17) when replacing cartesia.tts with cartesia (July 3)

949711f

Screenshot 2024-10-26 at 11 57 33 AM
Screenshot 2024-10-26 at 11 58 01 AM

@jonleung
Copy link

I'm having this issue as well and tried to go in and fix things in the Vocode files but wasn't able to figure it out as more and more errors came out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants