Skip to contentSkip to conversation

pocketsphinx: new package

PATCH Superseded Jonathan Ben-Avraham 2 participants 3 messages Jan 11, 2016 – Jan 12, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pocketsphinx: new package

From: Jonathan Ben Avraham <[email protected]>

PocketSphinx is one of Carnegie Mellon University's open source large vocabulary, speaker-independent, continuous speech recognition engines.

PocketSphinx is designed for mobile applications. PocketSphinx is a toolkit that uses the Sphinxbase library.

---
 package/Config.in                      |    1 +
 package/pocketsphinx/Config.in         |   16 ++++++++++++++++
 package/pocketsphinx/pocketsphinx.hash |    3 +++
 package/pocketsphinx/pocketsphinx.mk   |   23 +++++++++++++++++++++++
 4 files changed, 43 insertions(+)
 create mode 100644 package/pocketsphinx/Config.in
 create mode 100644 package/pocketsphinx/pocketsphinx.hash
 create mode 100644 package/pocketsphinx/pocketsphinx.mk
package/Config.in +1 -0
index 41faddd..b4470fc 100644
@@ -1206,6 +1206,7 @@ endif
 	source "package/netbsd-queue/Config.in"
 	source "package/orc/Config.in"
 	source "package/p11-kit/Config.in"
+	source "package/pocketsphinx/Config.in"
 	source "package/poco/Config.in"
 	source "package/protobuf/Config.in"
 	source "package/protobuf-c/Config.in"
package/pocketsphinx/Config.in new file +16 -0
new file mode 100644
index 0000000..b6666c1
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_POCKETSPHINX
+	bool "pocketsphinx"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	select BR2_PACKAGE_SPHINXBASE
+	help
+	  PocketSphinx is one of Carnegie Mellon University's open
+	  source large vocabulary, speaker-independent, continuous
+	  speech recognition engine.
+
+	  http://cmusphinx.sourceforge.net/
+
+comment "pocketsphinx needs a toolchain with threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
+
+comment "pocketsphinx depends on sphinxbase"
+	depends on !BR2_PACKAGE_SPHINXBASE
package/pocketsphinx/pocketsphinx.hash new file +3 -0
new file mode 100644
index 0000000..9815d98
@@ -0,0 +1,3 @@
+# Locally computed
+sha256 34c4d218bbb8c5bb85622909426a137fe89140ea2e35c65e84fe3ccc42356a39 pocketsphinx-5prealpha.tar.gz
+
package/pocketsphinx/pocketsphinx.mk new file +23 -0
new file mode 100644
index 0000000..27e66d5
@@ -0,0 +1,23 @@
+################################################################################
+#
+# pocketsphinx
+#
+################################################################################
+
+# At the time of this submission (20160110) the github cmusphinx/pocketsphinx
+# commit 9ee2fc6f83ed8a1d19ffee689ee3c6c48a8c4d58 does not build successfully
+# and the rep contains no 5prealpha or other tags, so we use the SourceForge
+# sources.
+POCKETSPHINX_VERSION = 5prealpha
+POCKETSPHINX_SITE = http://downloads.sourceforge.net/project/cmusphinx/pocketsphinx/$(POCKETSPHINX_VERSION)
+POCKETSPHINX_SOURCE = pocketsphinx-$(POCKETSPHINX_VERSION).tar.gz
+POCKETSPHINX_AUTORECONF = YES
+POCKETSPHINX_LICENSE = MIT
+# The license is contained in the copyright notice at the top of each source
+# file. There is no specific file with a general license notice.
+POCKETSPHINX_LICENSE_FILES = 
+POCKETSPHINX_CONF_OPTS = --without-python
+POCKETSPHINX_INSTALL_STAGING = YES
+POCKETSPHINX_DEPENDENCIES = sphinxbase
+
+$(eval $(autotools-package))
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 pocketsphinx: new package

Quoted 43 lines · Jonathan Ben-Avraham

From: Jonathan Ben Avraham <[email protected]>

PocketSphinx is one of Carnegie Mellon University's open source large vocabulary, speaker-independent, continuous speech recognition engines.

PocketSphinx is designed for mobile applications. PocketSphinx is a toolkit that uses the Sphinxbase library.

---
 package/Config.in                      |    1 +
 package/pocketsphinx/Config.in         |   16 ++++++++++++++++
 package/pocketsphinx/pocketsphinx.hash |    3 +++
 package/pocketsphinx/pocketsphinx.mk   |   23 +++++++++++++++++++++++
 4 files changed, 43 insertions(+)
 create mode 100644 package/pocketsphinx/Config.in
 create mode 100644 package/pocketsphinx/pocketsphinx.hash
 create mode 100644 package/pocketsphinx/pocketsphinx.mk
package/Config.in +1 -0
index 41faddd..b4470fc 100644
@@ -1206,6 +1206,7 @@ endif
 	source "package/netbsd-queue/Config.in"
 	source "package/orc/Config.in"
 	source "package/p11-kit/Config.in"
+	source "package/pocketsphinx/Config.in"
 	source "package/poco/Config.in"
 	source "package/protobuf/Config.in"
 	source "package/protobuf-c/Config.in"
package/pocketsphinx/Config.in new file +6 -0
new file mode 100644
index 0000000..b6666c1
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_POCKETSPHINX
+	bool "pocketsphinx"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	select BR2_PACKAGE_SPHINXBASE
+	help
+	  PocketSphinx is one of Carnegie Mellon University's open

package/pocketsphinx/Config.in line 16

Quoted 10 lines
package/pocketsphinx/Config.in new file +10 -0
+	  source large vocabulary, speaker-independent, continuous
+	  speech recognition engine.
+
+	  http://cmusphinx.sourceforge.net/
+
+comment "pocketsphinx needs a toolchain with threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
+
+comment "pocketsphinx depends on sphinxbase"
+	depends on !BR2_PACKAGE_SPHINXBASE

This comment is not needed.

Quoted 15 lines
package/pocketsphinx/pocketsphinx.hash new file +3 -0
new file mode 100644
index 0000000..9815d98
@@ -0,0 +1,3 @@
+# Locally computed
+sha256 34c4d218bbb8c5bb85622909426a137fe89140ea2e35c65e84fe3ccc42356a39 pocketsphinx-5prealpha.tar.gz
+
package/pocketsphinx/pocketsphinx.mk new file +0 -0
new file mode 100644
index 0000000..27e66d5

package/pocketsphinx/pocketsphinx.mk line 10

Quoted 10 lines
package/pocketsphinx/pocketsphinx.mk new file +10 -0
@@ -0,0 +1,23 @@
+################################################################################
+#
+# pocketsphinx
+#
+################################################################################
+
+# At the time of this submission (20160110) the github cmusphinx/pocketsphinx
+# commit 9ee2fc6f83ed8a1d19ffee689ee3c6c48a8c4d58 does not build successfully
+# and the rep contains no 5prealpha or other tags, so we use the SourceForge
+# sources.

Sourceforge is also the official source for this package, and it has an
uploaded tarball (github doesn't). So this comment is not really needed IMHO.

package/pocketsphinx/pocketsphinx.mk line 13

Quoted 3 lines
package/pocketsphinx/pocketsphinx.mk new file +3 -0
+POCKETSPHINX_VERSION = 5prealpha
+POCKETSPHINX_SITE = http://downloads.sourceforge.net/project/cmusphinx/pocketsphinx/$(POCKETSPHINX_VERSION)
+POCKETSPHINX_SOURCE = pocketsphinx-$(POCKETSPHINX_VERSION).tar.gz

This is the defualt, you can leave it out.

package/pocketsphinx/pocketsphinx.mk line 14

Quoted 1 line
package/pocketsphinx/pocketsphinx.mk new file +1 -0
+POCKETSPHINX_AUTORECONF = YES

Why is this needed? The tarball contains configure and Makefile.in, and you
don't have patches.

package/pocketsphinx/pocketsphinx.mk line 15

Quoted 1 line
package/pocketsphinx/pocketsphinx.mk new file +1 -0
+POCKETSPHINX_LICENSE = MIT

It's BSD-2c, no?

package/pocketsphinx/pocketsphinx.mk line 18

Quoted 3 lines
package/pocketsphinx/pocketsphinx.mk new file +3 -0
+# The license is contained in the copyright notice at the top of each source
+# file. There is no specific file with a general license notice.
+POCKETSPHINX_LICENSE_FILES = 

Then you should take one of the source files, e.g. one of the smaller ones,
src/libpocketsphinx/kws_detections.h - but do keep this comment.

Could you also report this problem upstream? It exists in the repo, so they
just forgot to add it to the tarball.

Regards,
Arnout

Quoted 6 lines
package/pocketsphinx/pocketsphinx.mk new file +5 -0
+POCKETSPHINX_CONF_OPTS = --without-python
+POCKETSPHINX_INSTALL_STAGING = YES
+POCKETSPHINX_DEPENDENCIES = sphinxbase
+
+$(eval $(autotools-package))
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#2 lore raw

PATCH 1/1 pocketsphinx: new package

In reply to Jonathan Ben-Avraham

On 11-01-16 12:55, Jonathan Ben-Avraham wrote:
[snip]

Quoted 17 lines
package/pocketsphinx/pocketsphinx.mk new file +11 -0
new file mode 100644
index 0000000..27e66d5
@@ -0,0 +1,23 @@
+################################################################################
+#
+# pocketsphinx
+#
+################################################################################
+
+# At the time of this submission (20160110) the github cmusphinx/pocketsphinx
+# commit 9ee2fc6f83ed8a1d19ffee689ee3c6c48a8c4d58 does not build successfully
+# and the rep contains no 5prealpha or other tags, so we use the SourceForge
+# sources.
+POCKETSPHINX_VERSION = 5prealpha

package/pocketsphinx/pocketsphinx.mk line 21

Quoted 10 lines
package/pocketsphinx/pocketsphinx.mk new file +10 -0
+POCKETSPHINX_SITE = http://downloads.sourceforge.net/project/cmusphinx/pocketsphinx/$(POCKETSPHINX_VERSION)
+POCKETSPHINX_SOURCE = pocketsphinx-$(POCKETSPHINX_VERSION).tar.gz
+POCKETSPHINX_AUTORECONF = YES
+POCKETSPHINX_LICENSE = MIT
+# The license is contained in the copyright notice at the top of each source
+# file. There is no specific file with a general license notice.
+POCKETSPHINX_LICENSE_FILES = 
+POCKETSPHINX_CONF_OPTS = --without-python
+POCKETSPHINX_INSTALL_STAGING = YES
+POCKETSPHINX_DEPENDENCIES = sphinxbase

Something I didn't notice before: it's refering to the build directory of
sphinxbase. Adding --with-sphinxbase=auto seems to fix it.

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF