2011-10-07 6 views
1

제 응용 프로그램에서Android TTS가 뮤직 플레이어를 중지합니다.

Intent checkIntent = new Intent(); 
checkIntent.setAction(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA); 
startActivityForResult(checkIntent, MY_DATA_CHECK_CODE); 

을 응용 프로그램의 텍스트 음성 출력에 사용합니다.

안드로이드 뮤직 플레이어를 시작하고 음악을 듣고 내 애플리케이션을 시작하면 음악이 즉시 재생되지 않습니다. (HTC Desire)

음악이 계속 재생되는 것을 어떻게 해결합니까?

CatLog :

10-07 08:39:33.783: ERROR/Tialawl.FindYourRun(11382): before Intent 
10-07 08:39:33.793: ERROR/Tialawl.FindYourRun(11382): before check 
10-07 08:39:33.793: ERROR/Tialawl.FindYourRun(11382): before start 
10-07 08:39:33.793: INFO/ActivityManager(96): Starting activity: Intent { act=android.speech.tts.engine.CHECK_TTS_DATA cmp=com.svox.pico/.CheckVoiceData } 
10-07 08:39:33.873: INFO/MediaPlaybackService(6625): get ACTION_MEDIA_MOUNTED signal... 
10-07 08:39:33.873: DEBUG/MediaPlaybackService(6625): reloadQueue(), (q != null && q.length() > 1)... 
10-07 08:39:33.873: DEBUG/MediaPlaybackService(6625): setCategory(0, -1, -1, -2, , -1) 
10-07 08:39:33.973: INFO/MediaPlayer(6625): MediaPlayer reset() 
10-07 08:39:33.983: VERBOSE/MediaPlayerService(67): [166] reset 
10-07 08:39:33.983: DEBUG/AwesomePlayer(67): [U5B] reset (382) 
10-07 08:39:33.983: DEBUG/AwesomePlayer(67): [U5B] reset_l (388) 
10-07 08:39:33.983: WARN/TimedEventQueue(67): Event 212 was not found in the queue, already cancelled? 
10-07 08:39:33.983: VERBOSE/AudioSink(67): stop 
10-07 08:39:33.983: VERBOSE/AudioSink(67): close 
10-07 08:39:33.983: DEBUG/AwesomePlayer(67): [U5B] reset_l (478) 
10-07 08:39:34.003: DEBUG/MediaPlaybackService(6625): setDataSource path=content://media/external/audio/media/80 
10-07 08:39:34.003: INFO/MediaPlayer(6625): MediaPlayer reset() 
10-07 08:39:34.003: INFO/MediaPlayer(6625): MediaPlayer setDataSource(context, uri) 
10-07 08:39:34.003: INFO/MediaPlayer(6625): MediaPlayer setDataSource(context, uri,headers) 
10-07 08:39:34.013: VERBOSE/MediaPlayerService(67): Client(167) constructor 
10-07 08:39:34.013: VERBOSE/MediaPlayerService(67): Create new client(167) from pid 6625, fd=27, offset=0, length=576460752303423487 
10-07 08:39:34.013: VERBOSE/MediaPlayerService(67): setDataSource fd=27, offset=0, length=576460752303423487 
10-07 08:39:34.013: VERBOSE/MediaPlayerService(67): st_dev = 45825 
10-07 08:39:34.013: VERBOSE/MediaPlayerService(67): st_mode = 32829 
10-07 08:39:34.013: VERBOSE/MediaPlayerService(67): st_uid = 1000 
10-07 08:39:34.013: VERBOSE/MediaPlayerService(67): st_gid = 1015 
10-07 08:39:34.013: VERBOSE/MediaPlayerService(67): st_size = 3876992 
10-07 08:39:34.013: VERBOSE/MediaPlayerService(67): calculated length = 3876992 
10-07 08:39:34.013: VERBOSE/AudioCache(67): We only support url check function now. 
10-07 08:39:34.013: VERBOSE/AudioCache(67): isQCPFileFormat() url=(null) 
10-07 08:39:34.013: INFO/(67): Has ID3 info, size = 24624 
10-07 08:39:34.013: VERBOSE/MediaPlayerService(67): player type = 4 
10-07 08:39:34.013: DEBUG/MediaPlayerService(67): player type = STAGEFRIGHT_PLAYER 
10-07 08:39:34.013: VERBOSE/MediaPlayerService(67): create StagefrightPlayer 
10-07 08:39:34.023: DEBUG/AwesomePlayer(67): [U5B] reset (382) 
10-07 08:39:34.023: DEBUG/AwesomePlayer(67): [U5B] reset_l (388) 
10-07 08:39:34.023: DEBUG/AwesomePlayer(67): [U5B] reset_l (478) 
10-07 08:39:34.023: DEBUG/AwesomePlayer(67): [U5B] setDataSource (319) 
10-07 08:39:34.023: DEBUG/AwesomePlayer(67): [U5B] reset_l (388) 
10-07 08:39:34.023: DEBUG/AwesomePlayer(67): [U5B] reset_l (478) 
10-07 08:39:34.023: DEBUG/AwesomePlayer(67): [U5B] setDataSource_l (339) 
10-07 08:39:34.023: DEBUG/MediaExtractor(67): [U5B] Create (47) 
10-07 08:39:34.023: VERBOSE/MediaExtractor(67): Autodetected media content as 'audio/mpeg' with confidence 0.30 
10-07 08:39:34.023: DEBUG/AwesomePlayer(67): [U5B] setDataSource_l (350) 
10-07 08:39:34.023: VERBOSE/MediaPlayerService(67): disconnect(166) from pid 6625 
10-07 08:39:34.023: DEBUG/AwesomePlayer(67): [U5B] reset (382) 
10-07 08:39:34.023: DEBUG/AwesomePlayer(67): [U5B] reset_l (388) 
10-07 08:39:34.023: DEBUG/AwesomePlayer(67): [U5B] reset_l (478) 
10-07 08:39:34.023: DEBUG/AwesomePlayer(67): [U5B] reset (382) 
10-07 08:39:34.023: DEBUG/AwesomePlayer(67): [U5B] reset_l (388) 
10-07 08:39:34.023: DEBUG/AwesomePlayer(67): [U5B] reset_l (478) 
10-07 08:39:34.023: DEBUG/AwesomePlayer(67): [U5B] reset (382) 
10-07 08:39:34.023: DEBUG/AwesomePlayer(67): [U5B] reset_l (388) 
10-07 08:39:34.023: DEBUG/AwesomePlayer(67): [U5B] reset_l (478) 
10-07 08:39:34.023: DEBUG/MediaPlaybackService(6625): setDataSource finished 
10-07 08:39:34.023: DEBUG/MediaPlaybackService(6625): prepare 
10-07 08:39:34.023: VERBOSE/MediaPlayerService(67): [167] setAudioStreamType(3) 
10-07 08:39:34.023: VERBOSE/MediaPlayerService(67): Client(166) destructor pid = 6625 
10-07 08:39:34.023: VERBOSE/AudioSink(67): close 
10-07 08:39:34.023: VERBOSE/MediaPlayerService(67): disconnect(166) from pid 6625 
10-07 08:39:34.023: VERBOSE/MediaPlayerService(67): [167] prepareAsync 
10-07 08:39:34.023: VERBOSE/MediaPlayerService(67): [167] notify (0x41690, 5, 0, 0) 
10-07 08:39:34.033: VERBOSE/AlarmManager(96): Adding Alarm{466033b8 type 2 com.google.android.location} Jan. 02 07:15:53 nachm. 
10-07 08:39:34.043: VERBOSE/MediaPlayerService(67): [167] notify (0x41690, 1, 0, 0) 
10-07 08:39:34.043: DEBUG/MediaPlaybackService(6625): prepare finished 
10-07 08:39:34.043: VERBOSE/MediaPlayerService(67): getDuration 
10-07 08:39:34.043: VERBOSE/MediaPlayerService(67): [167] getDuration = 225000 
10-07 08:39:34.043: DEBUG/MediaPlaybackService(6625): mMediaPlayer.getDuration(): 225000 
10-07 08:39:34.043: DEBUG/MediaPlaybackService(6625): mMediaPlayer.getDuration(): 225000 
10-07 08:39:34.043: VERBOSE/MediaPlayerService(67): [167] seekTo(0) 
10-07 08:39:34.043: VERBOSE/MediaPlayerService(67): [167] notify (0x41690, 4, 0, 0) 
10-07 08:39:34.053: INFO/EMMC(396): Action mounted + path: /mnt/sdcard 
10-07 08:39:34.083: ERROR/MediaScannerService(396): Failed to delete file /data/data/com.android.providers.media/pause_scan 
10-07 08:39:34.083: INFO/ActivityManager(96): Displayed activity com.tialawl.findyourrun/.FindYourRun: 1448 ms (total 1448 ms) 
10-07 08:39:34.133: ERROR/Tialawl.FindYourRun(11382): onActivityResult 

답변

0

나는 당신이 당신의 욕망에 2.2를 실행하고 탐색에 TTS와 같은 문제를 얻을거야하고 있으리라 믿고있어.

주식 플레이어 대신 Music Mod을 사용하거나 2.3에 응원하고 업그레이드하면 문제를 해결할 수 있습니다. 필자는 2.2가 소리와 음성을 바꾸는 옛 방식과 새로운 방식을 모두 가지고 있으며, TTS는 새로운 방식을 지원하지만 욕망과 함께 제공되는 플레이어는 그렇지 못하다는 것을 알고 있습니다.

관련 문제