google_ml_kit_flutter icon indicating copy to clipboard operation
google_ml_kit_flutter copied to clipboard

Language models are not downloaded from 'downloadModel' in google_mlkit_translation

Open Waruna-Kaushalya opened this issue 3 years ago • 0 comments

Language models are not downloaded from downloadModel in google_mlkit_translation. But when translating by translateText, if the relevant language model is not downloaded, the model will be downloaded automatically. And it is translated correctly. What is the reason for this? (deleteModel also works).

DEBUG CONSOLE

D/TransportRuntime.SQLiteEventStore( 6258): Storing event with priority=VERY_LOW, name=FIREBASE_ML_SDK for destination cct
D/TransportRuntime.JobInfoScheduler( 6258): Upload for context TransportContext(cct, VERY_LOW, MSRodHRwczovL2ZpcmViYXNlbG9nZ2luZy5nb29nbGVhcGlzLmNvbS92MGNjL2xvZy9iYXRjaD9mb3JtYXQ9anNvbl9wcm90bzNc) is already scheduled. Returning...

Tested isWifiRequired: true & isWifiRequired: false

final returnString = await modelManager
        .downloadModel(TranslateLanguage.hindi.bcpCode, isWifiRequired: true)
        .then((value) => value ? 'done' : 'error');

minSdkVersion 26 compileSdkVersion 31 targetSdkVersion 31 Flutter 3.0.5

Tested with: Samsung A105F(android-arm) Samsung SM N9600(android-arm64)

Waruna-Kaushalya avatar Aug 12 '22 08:08 Waruna-Kaushalya