tts와 안드로이드 스튜디오 자바 구글
안드로이드 스튜디오에서 구글 tts로 쉽게 원하는 텍스트를 소리로 변환하는 방법을 알아보겠습니다. <?xml version=”1.0″ encoding=”utf-8″?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent” tools:context=”.MainActivity”> <TextView android:id=”@+id/tvTitle” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:text=”TTS로 변환할 Text를 입력하세요” android:layout_marginTop=”200dp” app:layout_constraintBottom_toTopOf=”@id/etTTS” app:layout_constraintEnd_toEndOf=”parent” app:layout_constraintStart_toStartOf=”parent” app:layout_constraintTop_toTopOf=”parent” /> <EditText android:id=”@+id/etTTS” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_marginTop=”50dp” android:minWidth=”300dp” app:layout_constraintTop_toBottomOf=”@id/tvTitle” app:layout_constraintStart_toStartOf=”parent” app:layout_constraintEnd_toEndOf=”parent”/> <Button android:id=”@+id/btnExecute” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:text=”변환” app:layout_constraintTop_toBottomOf=”@id/etTTS” app:layout_constraintStart_toStartOf=”parent” app:layout_constraintEnd_toEndOf=”parent” android:layout_marginTop=”50dp”/> </androidx.constraintlayout.widget.ConstraintLayout> 실제로 … Read more