質問編集履歴

7

修正

2021/02/25 01:54

投稿

engnao
engnao

スコア29

test CHANGED
@@ -1 +1 @@
1
- GCP Speech to text で話者分離されずに出力される (beta1指定済み)
1
+ GCP Speech to text で話者分離されずに出力される (beta指定済み)
test CHANGED
File without changes

6

修正

2021/02/25 01:54

投稿

engnao
engnao

スコア29

test CHANGED
@@ -1 +1 @@
1
- GCP Speech to text で話者分離されずに出力される (speech_v1p1beta1指定済み)
1
+ GCP Speech to text で話者分離されずに出力される (beta1指定済み)
test CHANGED
File without changes

5

修正

2021/02/25 01:54

投稿

engnao
engnao

スコア29

test CHANGED
File without changes
test CHANGED
@@ -210,8 +210,8 @@
210
210
 
211
211
    【Python】Google Cloud Speech-to-Text APIの2種類のライブラリを使い比べてみた
212
212
 
213
-       https://qiita.com/r-wakatsuki/items/d867bfb80afc24d96de5
213
+        https://qiita.com/r-wakatsuki/items/d867bfb80afc24d96de5
214
214
 
215
215
     Cloud Speech-to-Text 公式リファレンス
216
216
 
217
-       https://cloud.google.com/speech-to-text/docs/how-to?hl=ja
217
+        https://cloud.google.com/speech-to-text/docs/how-to?hl=ja

4

文法の修正

2021/02/25 01:51

投稿

engnao
engnao

スコア29

test CHANGED
File without changes
test CHANGED
@@ -22,9 +22,19 @@
22
22
 
23
23
  ```
24
24
 
25
+ config = speech.RecognitionConfig(
26
+
27
+ encoding=speech.RecognitionConfig.AudioEncoding.FLAC,
28
+
29
+ sample_rate_hertz=rate,
30
+
31
+ language_code="ja-JP",
32
+
25
- enable_speaker_diarization=True,
33
+ enable_speaker_diarization=True,
26
-
34
+
27
- diarization_speaker_count=2,
35
+ diarization_speaker_count=2,
36
+
37
+ )
28
38
 
29
39
  ```
30
40
 

3

修正

2021/02/25 01:46

投稿

engnao
engnao

スコア29

test CHANGED
File without changes
test CHANGED
@@ -193,3 +193,15 @@
193
193
  print('[%d]Confidence >>>' % (index + 1), item.alternatives[0].confidence)
194
194
 
195
195
  ```
196
+
197
+
198
+
199
+ ■■参考資料
200
+
201
+   【Python】Google Cloud Speech-to-Text APIの2種類のライブラリを使い比べてみた
202
+
203
+       https://qiita.com/r-wakatsuki/items/d867bfb80afc24d96de5
204
+
205
+    Cloud Speech-to-Text 公式リファレンス
206
+
207
+       https://cloud.google.com/speech-to-text/docs/how-to?hl=ja

2

修正

2021/02/25 01:45

投稿

engnao
engnao

スコア29

test CHANGED
@@ -1 +1 @@
1
- GCP Speech to textで話者分離されずに出力される(speech_v1p1beta1指定済み)
1
+ GCP Speech to text で話者分離されずに出力される (speech_v1p1beta1指定済み)
test CHANGED
@@ -1,3 +1,5 @@
1
+ ■■事象
2
+
1
3
  Python環境でGCP Speech to text を使用して話者分離を実装しています。
2
4
 
3
5
  具体的な実現方法として、Google Cloud Storage ファイルを使用してテキスト化を実現しています。

1

文法の修正

2021/02/25 01:42

投稿

engnao
engnao

スコア29

test CHANGED
File without changes
test CHANGED
@@ -4,17 +4,25 @@
4
4
 
5
5
 
6
6
 
7
- しかし、下記のコードを実行してもテキスト化はされますが、話者分離はされません。
7
+ しかし、下記のpython実行コードを実行してもテキスト化はされますが、話者分離はされません。
8
8
 
9
- 尚、Beta版のライブラリのインポート(下記コード)の指定は記述しており、
9
+ 尚、Beta版のライブラリのインポート、RecognitionConfig内の話者分離のtrue(下記コード)の指定は記述しており、
10
10
 
11
- エラーコードは出力されていません。
11
+ 実行結果にエラーコードは出力されていません。
12
12
 
13
13
 
14
14
 
15
15
  ```
16
16
 
17
17
  from google.cloud import speech_v1p1beta1 as speech
18
+
19
+ ```
20
+
21
+ ```
22
+
23
+ enable_speaker_diarization=True,
24
+
25
+ diarization_speaker_count=2,
18
26
 
19
27
  ```
20
28