Git Product home page Git Product logo

Comments (16)

HMS-MLKit avatar HMS-MLKit commented on May 28, 2024 1

This problem will be solved in the October version update, please pay attention to it.

from hms-ml-demo.

Mike-mei avatar Mike-mei commented on May 28, 2024

Hello, can you provide your log file?

from hms-ml-demo.

minkiapps avatar minkiapps commented on May 28, 2024

Thats what I see in verbose:

2020-07-27 08:52:09.085 14937-14937/com.minkiapps.mlkit.huawei V/AudioManager: querySoundEffectsEnabled...
2020-07-27 08:52:09.085 14937-14937/com.minkiapps.mlkit.huawei I/ML_TTS_MLTtsEngine: [com.huawei.hms.mlsdk.tts.MLTtsEngine@b37e530] API:speak text[353] | queueMode[0]
2020-07-27 08:52:09.087 14937-14937/com.minkiapps.mlkit.huawei I/ML_TTS_MLTtsEngine: [com.huawei.hms.mlsdk.tts.MLTtsEngine@b37e530] API:speak return ID [1595832729085248]
2020-07-27 08:52:09.088 14937-15064/com.minkiapps.mlkit.huawei I/ML_TTS_AudioPlayer: resume play;  current state:1
2020-07-27 08:52:09.088 14937-15063/com.minkiapps.mlkit.huawei I/ML_TTS_SynthesisEngineOnline: startSpeechSynthesis|event=com.huawei.hms.mlsdk.tts.b.b@1f4ecf6
2020-07-27 08:52:09.088 14937-15063/com.minkiapps.mlkit.huawei I/ML_TTS_SynthesisEngineOnline: startSpeechSynthesis|TtsInput{text='原消戊江元遇不婚·水旱文匆那带回痛天假贴口象又
    流R定·歌服尺果再真三,普占要银乞新·
    黑封常度括道男祖黄想忍米羽己即仍今吉到跟嘉
    语要:巾大千肖仍肇坡已蝴火才昔,童细木高共蝴拍:
    睢千匆眼,世自穴
    占就三金能装停用戊大目斥米布;刀方林采看支同和
    福·科用匆想要良晋眼婚林春巾足友·真吧老
    明斗回口光六戊阴室娘年士汗小,汁内弟步屋布假冬玩
    跳波回泉呢虎,畏公玩黄耳。
    很明背高因,品国食错晚亮各二比眼削冒能起田要
    坐,吹步他校土意,朱今外清司跳冬·舞法几耍司
    出束重难雕蝶弟精促
    五只.呈W相人尤六固蚂父呢t
    未重免香拉都做萌
    向太弟功色寸;音面黏每禾。
    耳走步追肉司牙米示都目地
    清穴巾;忍新清戊至吹知
    松几消)向哥京!»
    聪道更活可煅·泉消院世男耳回
    工未主甲雨尼太夏,器
    络,当每用网-m用下。始有
    ', language='zh-Hans'}
2020-07-27 08:52:09.113 14937-15011/com.minkiapps.mlkit.huawei D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
2020-07-27 08:52:09.116 14937-15354/com.minkiapps.mlkit.huawei I/ML_TTS_TtsConfig: TtsConfig{person=zh-Hans-st-1, codec=3, sampleRate=1, speed=1.0, volume=5.0, pitch=5.0}
2020-07-27 08:52:09.116 14937-15354/com.minkiapps.mlkit.huawei I/ML_TTS_SynthesisEngineOnline: requestJson:{"data":{"text":"原消戊江元遇不婚·水旱文匆那带回痛天假贴口象又\n流R定·歌服尺果再真三,普占要银乞新·\n黑封常度括道男祖黄想忍米羽己即仍今吉到跟嘉\n语要:巾大千肖仍肇坡已蝴火才昔,童细木高共蝴拍:\n睢千匆眼,世自穴\n占就三金能装停用戊大目斥米布;刀方林采看支同和\n福·科用匆想要良晋眼婚林春巾足友·真吧老\n明斗回口光六戊阴室娘年士汗小,汁内弟步屋布假冬玩\n跳波回泉呢虎,畏公玩黄耳。\n很明背高因,品国食错晚亮各二比眼削冒能起田要\n坐,吹步他校土意,朱今外清司跳冬·舞法几耍司\n出束重难雕蝶弟精促\n五只.呈W相人尤六固蚂父呢t\n未重免香拉都做萌\n向太弟功色寸;音面黏每禾。\n耳走步追肉司牙米示都目地\n清穴巾;忍新清戊至吹知\n松几消)向哥京!»\n聪道更活可煅·泉消院世男耳回\n工未主甲雨尼太夏,器\n络,当每用网-m用下。始有\n","language":"zh-Hans"},"config":{"person":"zh-Hans-st-1","codec":3,"sampleRate":1,"speed":"1.0","volume":"5.0","pitch":"5.0"}}
2020-07-27 08:52:09.116 14937-15354/com.minkiapps.mlkit.huawei E/ML_TTS_SynthesisEngineOnline: Speech synthesis request failed!
2020-07-27 08:52:09.116 14937-15354/com.minkiapps.mlkit.huawei E/ML_TTS_SpeechSynthesisController: Receive engine error taskId[1595832729085248] errorCode[105] errorMsg[network no response]
2020-07-27 08:52:09.116 14937-15354/com.minkiapps.mlkit.huawei I/ML_TTS_MLTtsEngine: CALLBACK:[1595832729085248] onDispatchError[11302] ;
2020-07-27 08:52:09.116 14937-15063/com.minkiapps.mlkit.huawei I/ML_TTS_AudioPlayer: start write data; current state:1 taskId = 1595832729085248
2020-07-27 08:52:09.116 14937-15063/com.minkiapps.mlkit.huawei I/ML_TTS_AudioPlayer: current main cache size:1, result = true
2020-07-27 08:52:09.117 14937-15062/com.minkiapps.mlkit.huawei I/ML_TTS_AudioPlayer: before play, retry nextFrame 1595832729085248
2020-07-27 08:52:09.506 14937-15039/com.minkiapps.mlkit.huawei I/HiAnalyticsSDK: hmsSdk=> HiAnalyticsInstance.onReport() is execute.TAG: _hms_config_tag,TYPE: -1
2020-07-27 08:52:09.507 14937-15039/com.minkiapps.mlkit.huawei I/HiAnalyticsSDK: hmsSdk=> onReport: Before calling runtaskhandler()
2020-07-27 08:52:09.508 14937-15348/com.minkiapps.mlkit.huawei I/HiAnalyticsSDK: EventReportTask=> eventReportTask is running
2020-07-27 08:52:09.508 14937-15039/com.minkiapps.mlkit.huawei I/HaLogOnReport: onReport time =Mon Jul 27 08:52:09 GMT+02:00 2020
2020-07-27 08:52:09.508 14937-15348/com.minkiapps.mlkit.huawei I/HiAnalyticsSDK: EventManager=> read all event records
2020-07-27 08:52:09.509 14937-15348/com.minkiapps.mlkit.huawei I/HiAnalyticsSDK: EventReportTask=> no have events to report: tag:_hms_config_tag : type:alltype
2020-07-27 08:52:11.099 14937-15011/com.minkiapps.mlkit.huawei W/libEGL: EGLNativeWindowType 0x761a8363d0 disconnect failed

from hms-ml-demo.

Mike-mei avatar Mike-mei commented on May 28, 2024

We find that you failed to connect the server,because the server's response is null, please check whether your agconnect-services.json is right

from hms-ml-demo.

minkiapps avatar minkiapps commented on May 28, 2024

I doubled checked again, I went to AG console, downloaded the agconnect-services.json, put it into project and compiled, still the same error...

How are you sure that the json is incorrect? Since the error is quite generic.

from hms-ml-demo.

Mike-mei avatar Mike-mei commented on May 28, 2024

Please check the package_name in agconnect-services.json is the same with your applicationId in build.gradle

from hms-ml-demo.

minkiapps avatar minkiapps commented on May 28, 2024

its the same, else wise it wouldn't even compile afaik

from hms-ml-demo.

minkiapps avatar minkiapps commented on May 28, 2024

I created now a new project in AG console with new package name, it is still not working
Same error...

from hms-ml-demo.

minkiapps avatar minkiapps commented on May 28, 2024

Is there any progress on this one?

I pulled the latest master.

What I get now is this error from TTS on my Huawei Mate 30 Pro (Model LIO-L29)
MLTtsError{errorId=11398, errorMsg='Failed to receive streams.Reason: Got response failed:UnknownHostException', extension=0198}

On the other hand, TTS works on an older Huawei phone Huawei P8 lite 2017 (Model PRA-LX1)...

from hms-ml-demo.

HMS-MLKit avatar HMS-MLKit commented on May 28, 2024

Can you provide a complete error log?

from hms-ml-demo.

minkiapps avatar minkiapps commented on May 28, 2024

This is what I get:

 I/ML_TTS_MLTtsEngine: [com.huawei.hms.mlsdk.tts.MLTtsEngine@9816394] API:speak text[351] | Mode[0]
 I/ML_TTS_MLTtsEngine: [com.huawei.hms.mlsdk.tts.MLTtsEngine@9816394] API:speak return ID [1597146699895186]
 I/ML_TTS_AudioPlayer: Resume play;  current state:1
 I/ML_TTS_MLTtsEngine: CALLBACK:[1597146699895186] onDispatchSynthesisStart
 I/ML_TTS_SpeechSynthesisController: isReadyToStartSynthesis(), head is null
 I/ML_TTS_HttpUtils: Target domian: https:///v1/tts/text2audio
 I/ML_TTS_HttpUtils: Request from HMS Core!
 E/ML_CountryCodeHelper: getVendorCountry=eu
 E/ML_CountryCodeHelper: getVendorCountry equals eu or la ,not reliable
 E/ML_CountryCodeHelper: getSimCountryCode by not enableNetwork, countryCode=
 E/ML_CountryCodeHelper: getLocaleCountryCode from system language is not reliable.
 E/ML_TTS_HttpUtils: Got response failed:UnknownHostException;reasons:Unable to resolve host "v1": No address associated with hostname;cause:android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
 I/ML_TTS_HttpUtils: Target domian: https:///v1/tts/text2audio
 I/ML_TTS_HttpUtils: Request from HMS Core!
 E/ML_CountryCodeHelper: getVendorCountry=eu
 E/ML_CountryCodeHelper: getVendorCountry equals eu or la ,not reliable
 D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
 E/ML_CountryCodeHelper: getSimCountryCode by not enableNetwork, countryCode=
 E/ML_CountryCodeHelper: getLocaleCountryCode from system language is not reliable.
 E/ML_TTS_HttpUtils: Got response failed:UnknownHostException;reasons:Unable to resolve host "v1": No address associated with hostname;cause:null
 E/ML_TTS_SynthesisEngineOnline: Speech synthesis request failed!
 E/ML_TTS_SpeechSynthesisController: Receive engine error taskId[1597146699895186] errorCode[198] errorMsg[Failed to receive streams.Reason: Got response failed:UnknownHostException]
 I/ML_TTS_MLTtsEngine: CALLBACK:[1597146699895186] onDispatchError[11398] ;
 E/TTS: Failed to receive streams.Reason: Got response failed:UnknownHostException
 I/ML_TTS_SpeechSynthesisController: Receive END taskId [1597146699895186] interrupted [true]
 I/ML_TTS_MLTtsEngine: CALLBACK:[1597146699895186] onDispatchSynthesisEnd
 I/ML_TTS_SpeechSynthesisController: isReadyToStartSynthesis(), head is null
 I/ML_TTS_SpeechSynthesisController: isReadyToStartSynthesis(), head is null
 I/ML_TTS_AudioPlayer: Input audio data; current state:1 taskId = 1597146699895186 len:0
 I/ML_TTS_SpeechSynthesisController: TaskId:1597146699895186is Exist
 I/ML_TTS_MLTtsEngine: CALLBACK:[1597146699895186] onDispatchSynthesisComplete; interrupted[true]
 I/ML_TTS_HaAdapter: Post Event [1597146699895186]
 E/CountryCodeBean: getVendorCountry=eu
 E/CountryCodeBean: getVendorCountry equals eu or la ,not reliable
 E/CountryCodeBean: getSimCountryCode by not enableNetwork, countryCode=
 E/CountryCodeBean: getLocaleCountryCode=US
 E/CountryCodeBean: getLocaleCountryCode from system language is not reliable.
 E/HaLogProvider: forbiddenHiLog.getVenderCountry=UNKNOWN
 E/HaLogProvider: forbiddenHiLog openHa = true
 E/HaLogProvider: forbiddenHiLog.getVenderCountry=UNKNOWN
 E/HaLogProvider: forbiddenHiLog openHa = true
 E/CountryCodeBean: getVendorCountry=eu
 E/CountryCodeBean: getVendorCountry equals eu or la ,not reliable
 E/CountryCodeBean: getSimCountryCode by not enableNetwork, countryCode=
 E/CountryCodeBean: getLocaleCountryCode=US
 E/CountryCodeBean: getLocaleCountryCode from system language is not reliable.
 I/HaLogExecutor: type 1 mapValue:{package=com.minkiapps.wordreader, appid=102633825, appName=Homework-Reader, version=null, service=MLKit, transId=cfc673b4-7229-420c-ae74-2e13bfac1f86, operator=, networkType=wifi, apkVersion=, apiName=, countryCode=UNKNOWN, deviceType=LIO-L29, emuiVersion=EmotionUI_10.1.0, moudleName=MLKitTts, moudleVersion=2.0.1.302, deviceCategory=, ttsLanguage=zh-Hans, voiceName=zh-Hans-st-1, synthesisStartTime=1597146699899, synthesisEndTime=1597146699941, textLength=351, ttsFirstCost=0, ttsDownloadCost=0, sizeDownload=0, ttsSmoothly=true, result=1, resultDetail=MLTtsError{errorId=11398, errorMsg='Failed to receive streams.Reason: Got response failed:UnknownHostException', extension=0198}}
 I/HiAnalyticsSDK: hmsSdk=> HiAnalyticsInstance.onEvent(int type, String eventId, Map<String, String> mapValue) is execute.TAG: _hms_config_tag,TYPE: 1
 I/ML_TTS_SpeechSynthesisController: processSegment one audioSegment.isEndInterrupted(): true
 I/HiAnalyticsSDK: EventRecordTask=> Begin to run EventRecordTask...
 I/ML_TTS_SpeechSynthesisController: isReadyToStartSynthesis(), head is null
 I/HiAnalyticsSDK: EventRecordTask=> Cached data corrupted: stat_v2_1

from hms-ml-demo.

minkiapps avatar minkiapps commented on May 28, 2024

any updates on this one?

from hms-ml-demo.

Mike-mei avatar Mike-mei commented on May 28, 2024

@minkiapps
We still have 2 questions to confirm with you

  1. Did you insert SIM card into your phone? Please insert SIM card and try again.
  2. Would you mind telling us your country?

from hms-ml-demo.

minkiapps avatar minkiapps commented on May 28, 2024

Okay, with SIM card inserted, it works.
So, TTS only works on devices with SIM card? But why does it work on Huawei P8 lite without SIM card then?

My country is Austria.

from hms-ml-demo.

Mike-mei avatar Mike-mei commented on May 28, 2024

When you try to access with a test phone in areas like Europe, if you don't confirm user information, you can't access the server directly. This issue is involved with privacy security, and the related policy is still being optimized.

from hms-ml-demo.

minkiapps avatar minkiapps commented on May 28, 2024

So there is no way to use HMS services like TTS without having a SIM card inserted before?

from hms-ml-demo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.