wie verwende ich Cloud Text-to-Speech?

RezaScript

Bekanntes Mitglied
Hallo, im Android Studio habe ich ein Java-Projekt und möchte gerne Cloud Text-to-Speech verwenden.

In der Dokumentation sehe ich ein Maven-Script, ich benutze aber Gradle. Unter App -> build.gradle, habe ich compile group: 'com.google.cloud', name: 'google-cloud-texttospeech', version: '1.2.1' unter Dependencies eingefügt, bekomme aber die Fehlermeldung: More than one file was found with OS independent path 'META-INF/INDEX.LIST'.

Was mache ich falsch?
 

RezaScript

Bekanntes Mitglied
@thecain das habe ich auch schon ausprobiert aber dann bekomme ich Fehlermeldung:
Could not find com.google.cloud:libraries-bom:.
Required by:
project :app
So sieht es bei mir aus:

Code:
dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'com.google.android.material:material:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'com.google.cloud:libraries-bom'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
 

thecain

Top Contributor
Da fehlt ja die Version. Zudem hast du mMn nicht das gemacht was da steht, aber ich kenne mich leider mit gradle nicht aus und weiss nicht ob das so wie du's machst auch geht...
 

RezaScript

Bekanntes Mitglied
@thecain du hast recht! Ich habe es nun so probiert und bekomme keine Fehlermeldung mehr: implementation 'com.google.cloud:libraries-bom:4.3.0'

Ich habe nun alle Schritte in der Anleitung ausgeführt, kann com.google.cloud aber dennoch nicht importieren. Mit import com.google.cloud.*; bekomme ich die Fehlermeldung: Cannot resolve symbol 'cloud'
 
Ähnliche Java Themen
  Titel Forum Antworten Datum
A Android Daten in der Cloud speichern (Google) Android & Cross-Platform Mobile Apps 1
W Edit Text Drawable Icon ändern plus Funktion Android & Cross-Platform Mobile Apps 30
R Google Text-to-Speech Android & Cross-Platform Mobile Apps 5
R Android Text-To-Speech Android & Cross-Platform Mobile Apps 4
ruutaiokwu Android In einem Android-“Spinner”-Element GLEICHZEITIG Bild (links) UND Text (rechts) anzeigen Android & Cross-Platform Mobile Apps 0
J Android App - Browser öffnen und Text eingeben/Button click auslösen Android & Cross-Platform Mobile Apps 10
M ImageButton: Bild ausblenden und Text anzeigen Android & Cross-Platform Mobile Apps 2
Flynn Text-File auf externe Speicherkarte schreiben Android & Cross-Platform Mobile Apps 1
F Aufkalbbaren Text Android & Cross-Platform Mobile Apps 4
B Android Text von Android zu PC senden? Android & Cross-Platform Mobile Apps 5
C Android Bei Text "Popup" anzeigen Android & Cross-Platform Mobile Apps 2
Anfänger2011 Text to Speech Problem Android & Cross-Platform Mobile Apps 1
M Android Edittext width passend zum Text Android & Cross-Platform Mobile Apps 1
L Android Theorie: Umwandeln von Text in Morsecode Android & Cross-Platform Mobile Apps 15
R Android Layout Bild mit Text Android & Cross-Platform Mobile Apps 13
N Android Änderung von tabwidget height lässt text verschwinden Android & Cross-Platform Mobile Apps 3
L Android Text aus Textfeld speichern Android & Cross-Platform Mobile Apps 5
J in android app text automatisch kopieren Android & Cross-Platform Mobile Apps 2
S Android Zufällige Text wiedergabe Android & Cross-Platform Mobile Apps 6
G Android zur Laufzeit den Text im Menü ändern Android & Cross-Platform Mobile Apps 3
K Android schwarzer Bildschirm beim Rendern von Text und Dreiecken Android & Cross-Platform Mobile Apps 9
S Android Canvas - drawText - Update Text in ActionListener Android & Cross-Platform Mobile Apps 8
N Gibt es eine opensource Speech-to-Text engine? Android & Cross-Platform Mobile Apps 3
M Text in txt-Datei schreiben und nach ABC sortieren? Android & Cross-Platform Mobile Apps 2
M Text in Canvas scrollen lassen Android & Cross-Platform Mobile Apps 13
G Text parsen String to Double Android & Cross-Platform Mobile Apps 2

Ähnliche Java Themen

Neue Themen


Oben