1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Desktop, Server: Add transcribe functionality to Desktop though Joplin Server (#12670)

This commit is contained in:
pedr
2025-07-31 12:42:03 -03:00
committed by GitHub
parent e3c2589a12
commit cbdc98553a
24 changed files with 728 additions and 41 deletions

View File

@@ -518,12 +518,13 @@ export default class Resource extends BaseItem {
SELECT ${selectSql}
FROM resources
WHERE
ocr_status = ? AND
(ocr_status = ? or ocr_status = ?) AND
encryption_applied = 0 AND
mime IN ('${supportedMimeTypes.join('\',\'')}')
`,
params: [
ResourceOcrStatus.Todo,
ResourceOcrStatus.Processing,
],
};
}

View File

@@ -556,6 +556,16 @@ const builtInMetadata = (Setting: typeof SettingType) => {
isGlobal: true,
},
'ocr.handwrittenTextDriverEnabled': {
value: true,
type: SettingItemType.Bool,
public: true,
appTypes: [AppType.Desktop],
label: () => _('Enable handwritten transcription'),
storage: SettingStorage.File,
isGlobal: true,
},
'ocr.languageDataPath': {
value: '',
type: SettingItemType.String,