Skip to content

Provide option for creating JSON output #614

Closed
@tuxpoldo

Description

@tuxpoldo

In order to allow other applications to read the result, it would be a nice idea to have also the option to produce a JSON file:

Sample:

{
	"systeminfo": "AVX = 0 | AVX2 = 0 | AVX512 = 0 | FMA = 0 | NEON = 1 | ARM_FMA = 1 | F16C = 0 | FP16_VA = 1 | WASM_SIMD = 0 | BLAS = 1 | SSE3 = 0 | VSX = 0 | ",
	"model": {
		"type": "large",
		"multilingual": true,
		"vocab": 51865,
		"audio": {
			"ctx": 1500,
			"state": 1280,
			"head": 20,
			"layer": 32
		},
		"text": {
			"ctx": 448,
			"state": 1280,
			"head": 20,
			"leyer": 32
		},
		"mels": 80,
		"f16": 1
	},
	"params": {
		"model": "models/ggml-large.bin",
		"language": "auto",
		"translate": true
	},
	"result": {
		"language": "de"
	},
	"transcription": [
		{
			"timestanps": {
				"from": "00:00:00,000",
				"to": "00:00:02,000"
			},
			"offsets": {
				"from": 0,
				"to": 2000
			},
			"text": " Hello everyone."
		},
		{
			"timestanps": {
				"from": "00:00:02,000",
				"to": "00:00:08,000"
			},
			"offsets": {
				"from": 2000,
				"to": 8000
			},
			"text": " Here is a typical caller who only tells nonsense."
		},
		{
			"timestanps": {
				"from": "00:00:08,000",
				"to": "00:00:17,000"
			},
			"offsets": {
				"from": 8000,
				"to": 17000
			},
			"text": " Callers who always call and nag and nag and make a lot of stupid statements."
		},
		{
			"timestanps": {
				"from": "00:00:17,000",
				"to": "00:00:20,000"
			},
			"offsets": {
				"from": 17000,
				"to": 20000
			},
			"text": " Goodbye."
		}
	]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions