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]: audio/speech/use-cases/podcast/multi-speaker-podcast.ipynb throws error when installing TTS lib #1548

Open
1 task done
bdoohan-goog opened this issue Dec 17, 2024 · 2 comments
Assignees

Comments

@bdoohan-goog
Copy link
Contributor

bdoohan-goog commented Dec 17, 2024

File Name

https://github.com/GoogleCloudPlatform/generative-ai/blob/main/audio/speech/use-cases/podcast/multi-speaker-podcast.ipynb

What happened?

Running this code

import json

from IPython.display import Audio
from google.api_core.client_options import ClientOptions
from google.cloud import texttospeech_v1beta1 as texttospeech
from vertexai.generative_models import GenerationConfig, GenerativeModel, Part

Returns this error

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
[<ipython-input-1-6a9438a3d409>](https://localhost:8080/#) in <cell line: 5>()
      3 from IPython.display import Audio
      4 from google.api_core.client_options import ClientOptions
----> 5 from google.cloud import texttospeech_v1beta1 as texttospeech
      6 from vertexai.generative_models import GenerationConfig, GenerativeModel, Part

ImportError: cannot import name 'texttospeech_v1beta1' from 'google.cloud' (unknown location)

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------

Code of Conduct

  • I agree to follow this project's Code of Conduct
@bdoohan-goog
Copy link
Contributor Author

Screenshot 2024-12-17 at 1 16 50 PM

@holtskinner
Copy link
Collaborator

@bdoohan-goog Did you restart the Kernel after installing the library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants